rust/src/test/ui/issues/issue-28433.rs
2018-12-25 21:08:33 -07:00

14 lines
210 B
Rust

// compile-flags: -Z continue-parse-after-error
enum bird {
pub duck,
//~^ ERROR: expected identifier, found keyword `pub`
//~| ERROR: expected
goose
}
fn main() {
let y = bird::goose;
}