summaryrefslogtreecommitdiffstats
path: root/src/test/ui/rfc-2008-non-exhaustive/variants_fictive_visibility.rs
blob: dacaf489a90825ca3094e95c9d03cdf46c96ed7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// build-pass (FIXME(62277): could be check-pass?)
// aux-build:variants.rs

extern crate variants;

const S: u8 = 0;

// OK, `Struct` in value namespace is crate-private, so it's filtered away
// and there's no conflict with the previously defined `const S`.
use variants::NonExhaustiveVariants::Struct as S;

fn main() {}