We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
// foo.rs enum Foo { Bar(int) }
extern mod foo; fn main() { println!("{:?}", foo::Bar(1)) }
The above compiles fine, and, adding an explicit priv to Bar emits an error about unnecessary priv.
priv
Bar