You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use foo::{f, h};
mod foo {
pub enum f {
pub g,
priv h
}
}
fn main() {
let y = h;
}
This shouldn't compile, because h is private. But it's currently accepted. I'm not sure if we want to support pub/priv on variants or not, but if not, we should disallow pub/priv on them altogether.