]>
Commit | Line | Data |
---|---|---|
1b1a35ee | 1 | // Minimized case from #62767. |
ba9703b0 XL |
2 | mod m { |
3 | pub enum Same { | |
4 | Same, | |
5 | } | |
6 | } | |
7 | ||
8 | use m::*; | |
9 | ||
1b1a35ee XL |
10 | // The variant `Same` introduced by this import is also considered when resolving the prefix |
11 | // `Same::` during import validation to avoid effects similar to time travel (#74556). | |
12 | use Same::Same; //~ ERROR unresolved import `Same` | |
13 | ||
14 | // Case from #74556. | |
15 | mod foo { | |
16 | pub mod bar { | |
17 | pub mod bar { | |
18 | pub fn foobar() {} | |
19 | } | |
20 | } | |
21 | } | |
22 | ||
23 | use foo::*; | |
24 | use bar::bar; //~ ERROR unresolved import `bar::bar` | |
25 | //~| ERROR inconsistent resolution for an import | |
26 | use bar::foobar; | |
ba9703b0 XL |
27 | |
28 | fn main() {} |