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"); }
14 //~| expected type, found `1`
15 if T {} == T {} { println!("Ok"); }
17 //~| ERROR expected expression, found `==`
21 for _ in std::ops::Range { start: 0, end: 10 } {}
23 //~| ERROR expected type, found `0`