2019-03-08 16:35:38 -06:00
|
|
|
enum Bird {
|
|
|
|
pub Duck,
|
2023-04-03 22:28:55 -05:00
|
|
|
//~^ ERROR visibility qualifiers are not permitted here
|
2019-03-09 17:14:22 -06:00
|
|
|
Goose,
|
|
|
|
pub(crate) Dove
|
2023-04-03 22:28:55 -05:00
|
|
|
//~^ ERROR visibility qualifiers are not permitted here
|
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
|
|
|
}
|