]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2008-non-exhaustive/variants_fictive_visibility.rs
parser will not give wrong help message for 'public'
[rust.git] / src / test / ui / rfc-2008-non-exhaustive / variants_fictive_visibility.rs
1 // build-pass (FIXME(62277): could be check-pass?)
2 // aux-build:variants.rs
3
4 extern crate variants;
5
6 const S: u8 = 0;
7
8 // OK, `Struct` in value namespace is crate-private, so it's filtered away
9 // and there's no conflict with the previously defined `const S`.
10 use variants::NonExhaustiveVariants::Struct as S;
11
12 fn main() {}