]> git.lizzy.rs Git - rust.git/blob - src/test/ui/double-type-import.rs
Sync core::simd up to rust-lang/portable-simd@2e081db92aa3ee0a4563bc28ce01bdad5b1b2efd
[rust.git] / src / test / ui / double-type-import.rs
1 mod foo {
2     pub use self::bar::X;
3     use self::bar::X;
4     //~^ ERROR the name `X` is defined multiple times
5
6     mod bar {
7         pub struct X;
8     }
9 }
10
11 fn main() {
12     let _ = foo::X;
13 }