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