]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/issue-79690.rs
2 // This test gives a different error on 32-bit architectures.
5 union Transmute
<T
: Copy
, U
: Copy
> {
17 fn bar(&self) -> u32 {
21 #[derive(Copy, Clone)]
22 struct Fat
<'a
>(&'a Foo
, &'
static VTable
);
26 const FOO
: &dyn Bar
= &Foo
{
30 const G
: Fat
= unsafe { Transmute { t: FOO }
.u
};
31 //~^ ERROR it is undefined behavior to use this value