rust/src/test/ui/parser/removed-syntax-field-let.rs

10 lines
192 B
Rust

// compile-flags: -Z continue-parse-after-error
struct S {
let foo: (),
//~^ ERROR expected identifier, found keyword `let`
//~^^ ERROR expected `:`, found `foo`
}
fn main() {}