1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
// check-pass // edition:2018 #![allow(non_camel_case_types)] enum Foo {} struct std; fn main() { enum Foo { A, B } use Foo::*; // OK let _ = (A, B); fn std() {} enum std {} use std as foo; // OK }