2016-03-26 01:36:03 +01:00
|
|
|
// compile-flags: -Z continue-parse-after-error
|
|
|
|
|
2015-09-16 19:35:33 +03:00
|
|
|
enum bird {
|
2015-09-17 12:47:03 +03:00
|
|
|
pub duck,
|
|
|
|
//~^ ERROR: expected identifier, found keyword `pub`
|
2018-01-06 14:43:20 -08:00
|
|
|
//~| ERROR: expected
|
2015-09-16 19:35:33 +03:00
|
|
|
goose
|
2012-11-29 12:08:40 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
fn main() {
|
2015-09-16 19:35:33 +03:00
|
|
|
let y = bird::goose;
|
2012-11-29 12:08:40 -08:00
|
|
|
}
|