2 // [thir]compile-flags: -Z thir-unsafeck
4 #![allow(unused_variables)]
12 let foo = Foo { bar: 5 };
13 let a = foo.bar; //~ ERROR access to union field is unsafe and requires unsafe function or block
14 let b = foo.baz; //~ ERROR access to union field is unsafe and requires unsafe function or block