0
0
mirror of https://github.com/rust-lang/rust.git synced 2024-11-24 18:21:15 +01:00
rust/tests/crashes/130521.rs
2024-11-21 01:35:34 +00:00

14 lines
216 B
Rust

//@ known-bug: #130521
#![feature(dyn_compatible_for_dispatch)]
struct Vtable(dyn Cap);
trait Cap<'a> {}
union Transmute {
t: u128,
u: &'static Vtable,
}
const G: &Copy = unsafe { Transmute { t: 1 }.u };