]> git.lizzy.rs Git - rust.git/blob - src/test/ui/imports/issue-62767.rs
Sync portable-simd to rust-lang/portable-simd@72df4c45056a8bc0d1b3f06fdc828722177f0763
[rust.git] / src / test / ui / imports / issue-62767.rs
1 // check-pass
2
3 // Minimized case from #62767.
4 mod m {
5     pub enum Same {
6         Same,
7     }
8 }
9
10 use m::*;
11
12 // The variant `Same` introduced by this import is also considered when resolving the prefix
13 // `Same::` during import validation to avoid effects similar to time travel (#74556).
14 use Same::Same;
15
16 // Case from #74556.
17 mod foo {
18     pub mod bar {
19         pub mod bar {
20             pub fn foobar() {}
21         }
22     }
23 }
24
25 use foo::*;
26 use bar::bar;
27
28 use bar::foobar;
29
30 fn main() {}