15 lines
245 B
Rust
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;
|
|
}
|