Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
issues
/
issue-64593.rs
blob: 9e787f638a9989d7827d58bf6e4845847f8c458f [
file
] [
log
] [
blame
]
// check-pass
#![
deny
(
improper_ctypes
)]
pub
struct
Error
(
std
::
num
::
NonZeroU32
);
extern
"Rust"
{
fn
foo
(
dest
:
&
mut
[
u8
])
->
Result
<(),
Error
>;
}
fn
main
()
{
let
_
=
unsafe
{
foo
(&
mut
[])
};
}