1 // This test is similar to `basic.rs`, but with macros defining local items.
6 #![allow(non_camel_case_types)]
8 // Test that ambiguity errors are not emitted between `self::test` and
9 // `::test`, assuming the latter (crate) is not in `extern_prelude`.
13 pub struct Foo(pub ());
20 // Test that qualified paths can refer to both the external crate and local item.
24 pub struct io(pub ());
28 use ::std::io as std_io;
29 use self::std::io as local_io;
34 let _ = std_io::stdout();