]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve_self_super_hint.rs
Auto merge of #62748 - luca-barbieri:optimize-refcell-borrow, r=RalfJung
[rust.git] / src / test / ui / resolve_self_super_hint.rs
1 #![allow(unused_extern_crates)]
2
3 mod a {
4     extern crate alloc;
5     use alloc::HashMap;
6     //~^ ERROR unresolved import `alloc` [E0432]
7     //~| HELP a similar path exists
8     //~| SUGGESTION self::alloc
9     mod b {
10         use alloc::HashMap;
11         //~^ ERROR unresolved import `alloc` [E0432]
12         //~| HELP a similar path exists
13         //~| SUGGESTION super::alloc
14         mod c {
15             use alloc::HashMap;
16             //~^ ERROR unresolved import `alloc` [E0432]
17             //~| HELP a similar path exists
18             //~| SUGGESTION a::alloc
19             mod d {
20                 use alloc::HashMap;
21                 //~^ ERROR unresolved import `alloc` [E0432]
22                 //~| HELP a similar path exists
23                 //~| SUGGESTION a::alloc
24             }
25         }
26     }
27 }
28
29 fn main() {}