rust/tests/ui/rfcs/rfc-2008-non-exhaustive/variants_fictive_visibility.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
324 B
Rust
Raw Normal View History

// build-pass (FIXME(62277): could be check-pass?)
// aux-build:variants.rs
extern crate variants;
const S: u8 = 0;
2019-04-14 04:37:22 -05:00
// 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() {}