2 struct Foo { a: bool }
;
4 let f
= Foo(); //~ ERROR E0423
8 struct S { x: i32, y: i32 }
12 if let S { x: _x, y: 2 }
= S { x: 1, y: 2 } { println!("Ok"); }
13 //~^ ERROR struct literals are not allowed here
14 if T {}
== T {} { println!("Ok"); }
16 //~| ERROR expected expression, found `==`
20 for _
in std
::ops
::Range { start: 0, end: 10 } {}
21 //~^ ERROR struct literals are not allowed here