diff options
Diffstat (limited to 'tests/rustdoc-ui/issue-79494.rs')
-rw-r--r-- | tests/rustdoc-ui/issue-79494.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/issue-79494.rs b/tests/rustdoc-ui/issue-79494.rs new file mode 100644 index 000000000..fc39424b7 --- /dev/null +++ b/tests/rustdoc-ui/issue-79494.rs @@ -0,0 +1,5 @@ +// only-x86_64-unknown-linux-gnu + +#![feature(const_transmute)] + +const ZST: &[u8] = unsafe { std::mem::transmute(1usize) }; //~ ERROR cannot transmute between types of different sizes, or dependently-sized types |