2 //[mir]compile-flags: -Z borrowck=mir
4 // Ensure that moves out of static items is forbidden
10 static BAR: Foo = Foo { foo: 5 };
14 let _f = Foo{foo: 4, ..f};
18 test(BAR); //[ast]~ ERROR cannot move out of static item [E0507]
19 //[mir]~^ ERROR [E0507]