rust/tests/ui/issues/issue-28433.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
220 B
Rust
Raw Normal View History

enum Bird {
pub Duck,
//~^ ERROR visibility qualifiers are not permitted here
2019-03-09 23:14:22 +00:00
Goose,
pub(crate) Dove
//~^ ERROR visibility qualifiers are not permitted here
}
fn main() {
let y = Bird::Goose;
}