Address review comments
This commit is contained in:
parent
3c3a140294
commit
dbc7042bfe
2 changed files with 13 additions and 8 deletions
|
|
@ -4,6 +4,9 @@
|
|||
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() {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue