4 #![allow(unused_imports)]
5 #![allow(non_camel_case_types)]
7 // Test that ambiguity errors are not emitted between `self::test` and
8 // `::test`, assuming the latter (crate) is not in `extern_prelude`.
10 pub struct Foo(pub ());
14 // Test that qualified paths can refer to both the external crate and local item.
16 pub struct io(pub ());
18 use ::std::io as std_io;
19 use self::std::io as local_io;
23 let _ = std_io::stdout();
27 // Test that having `std_io` in a module scope and a non-module
28 // scope is allowed, when both resolve to the same definition.
29 use ::std::io as std_io;