Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
#![feature(untagged_unions)]
// Non-copy
struct A;
struct B;
union U {
a: A,
b: B,
}
fn main() {
unsafe {
{
let mut u = U { a: A };
let a = u.a;
let a = u.a; //~ ERROR use of moved value: `u`
u.a = A;
let a = u.a; // OK
u.b = B;