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