]> git.proxmox.com Git - rustc.git/blame - src/test/ui/imports/issue-62767.rs
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / imports / issue-62767.rs
CommitLineData
1b1a35ee 1// Minimized case from #62767.
ba9703b0
XL
2mod m {
3 pub enum Same {
4 Same,
5 }
6}
7
8use 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).
12use Same::Same; //~ ERROR unresolved import `Same`
13
14// Case from #74556.
15mod foo {
16 pub mod bar {
17 pub mod bar {
18 pub fn foobar() {}
19 }
20 }
21}
22
23use foo::*;
24use bar::bar; //~ ERROR unresolved import `bar::bar`
25 //~| ERROR inconsistent resolution for an import
26use bar::foobar;
ba9703b0
XL
27
28fn main() {}