rust/src/test/ui/issues/issue-28433.rs
2019-03-16 17:47:57 -07:00

15 lines
245 B
Rust

// compile-flags: -Z continue-parse-after-error
enum Bird {
pub Duck,
//~^ ERROR unnecessary visibility qualifier
Goose,
pub(crate) Dove
//~^ ERROR unnecessary visibility qualifier
}
fn main() {
let y = Bird::Goose;
}