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

8 lines
192 B
Rust
Raw Normal View History

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