rust/tests/ui/parser/removed-syntax/removed-syntax-field-let-2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
257 B
Rust
Raw Normal View History

2022-10-11 17:01:22 +00:00
struct Foo {
let x: i32,
//~^ ERROR expected identifier, found keyword
let y: i32,
//~^ ERROR expected identifier, found keyword
}
fn main() {
let _ = Foo {
//~^ ERROR missing fields `x` and `y` in initializer of `Foo`
};
}