rust/tests/ui/issues/issue-28433.rs
2023-01-11 09:32:08 +00:00

13 lines
196 B
Rust

enum Bird {
pub Duck,
//~^ ERROR unnecessary visibility qualifier
Goose,
pub(crate) Dove
//~^ ERROR unnecessary visibility qualifier
}
fn main() {
let y = Bird::Goose;
}