summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-64593.rs
blob: 9e787f638a9989d7827d58bf6e4845847f8c458f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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 []) };
}