rust/src/test/ui/rfc-2008-non-exhaustive/variants_fictive_visibility.rs
2019-04-14 12:37:22 +03:00

13 lines
289 B
Rust

// compile-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() {}