]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/removed-syntax-field-let-2.rs
Auto merge of #103600 - compiler-errors:early-binder-nits, r=spastorino
[rust.git] / src / test / ui / parser / removed-syntax-field-let-2.rs
1 struct Foo {
2     let x: i32,
3     //~^ ERROR expected identifier, found keyword
4     let y: i32,
5     //~^ ERROR expected identifier, found keyword
6 }
7
8 fn main() {
9     let _ = Foo {
10         //~^ ERROR missing fields `x` and `y` in initializer of `Foo`
11     };
12 }