1 // Macros with def-site hygiene still bring traits into scope.
2 // It is not clear whether this is desirable behavior or not.
3 // It is also not clear how to prevent it if it is not desirable.
7 #![feature(decl_macro)]
8 #![feature(trait_alias)]
12 fn simple_import(&self) {}
15 fn renamed_import(&self) {}
18 fn underscore_import(&self) {}
21 fn trait_alias(&self) {}
34 use traits::Trait2 as Alias;
37 use traits::Trait3 as _;
40 trait Alias = traits::Trait4;
51 ().underscore_import();