Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
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
[])
};
}