2019-03-08 16:35:38 -06:00
|
|
|
enum Bird {
|
|
|
|
pub Duck,
|
2019-03-08 17:12:51 -06:00
|
|
|
//~^ ERROR unnecessary visibility qualifier
|
2019-03-09 17:14:22 -06:00
|
|
|
Goose,
|
|
|
|
pub(crate) Dove
|
|
|
|
//~^ ERROR unnecessary visibility qualifier
|
2012-11-29 14:08:40 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
fn main() {
|
2019-03-08 16:35:38 -06:00
|
|
|
let y = Bird::Goose;
|
2012-11-29 14:08:40 -06:00
|
|
|
}
|