2019-07-02 16:30:28 -05:00
|
|
|
// build-pass (FIXME(62277): could be check-pass?)
|
2019-04-13 04:56:07 -05:00
|
|
|
// 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`.
|
2019-04-13 04:56:07 -05:00
|
|
|
use variants::NonExhaustiveVariants::Struct as S;
|
|
|
|
|
|
|
|
fn main() {}
|