summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-28433.rs
blob: 8d05c32d5de91d20ca2ff62ed5c3111759f23020 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
enum Bird {
    pub Duck,
    //~^ ERROR unnecessary visibility qualifier
    Goose,
    pub(crate) Dove
    //~^ ERROR unnecessary visibility qualifier
}


fn main() {
    let y = Bird::Goose;
}