]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve_self_super_hint.rs
Auto merge of #56079 - mark-i-m:patch-1, r=nikomatsakis
[rust.git] / src / test / ui / resolve_self_super_hint.rs
1 #![feature(alloc)]
2 #![allow(unused_extern_crates)]
3
4 mod a {
5     extern crate alloc;
6     use alloc::HashMap;
7     //~^ ERROR unresolved import `alloc` [E0432]
8     //~| did you mean `self::alloc`?
9     mod b {
10         use alloc::HashMap;
11         //~^ ERROR unresolved import `alloc` [E0432]
12         //~| did you mean `super::alloc`?
13         mod c {
14             use alloc::HashMap;
15             //~^ ERROR unresolved import `alloc` [E0432]
16             //~| did you mean `a::alloc`?
17             mod d {
18                 use alloc::HashMap;
19                 //~^ ERROR unresolved import `alloc` [E0432]
20                 //~| did you mean `a::alloc`?
21             }
22         }
23     }
24 }
25
26 fn main() {}