]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/removed-syntax-field-let-2.rs
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / 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 }