diff options
Diffstat (limited to 'tests/ui/issues/issue-64593.rs')
-rw-r--r-- | tests/ui/issues/issue-64593.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-64593.rs b/tests/ui/issues/issue-64593.rs new file mode 100644 index 000000000..9e787f638 --- /dev/null +++ b/tests/ui/issues/issue-64593.rs @@ -0,0 +1,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 []) }; +} |