]> git.proxmox.com Git - rustc.git/blob - src/test/compile-fail/resolve_self_super_hint.rs
New upstream version 1.21.0+dfsg1
[rustc.git] / src / test / compile-fail / resolve_self_super_hint.rs
1 // Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 #![feature(alloc)]
12 #![allow(unused_extern_crates)]
13
14 mod a {
15 extern crate alloc;
16 use alloc::HashMap;
17 //~^ ERROR unresolved import `alloc` [E0432]
18 //~| Did you mean `self::alloc`?
19 mod b {
20 use alloc::HashMap;
21 //~^ ERROR unresolved import `alloc` [E0432]
22 //~| Did you mean `a::alloc`?
23 mod c {
24 use alloc::HashMap;
25 //~^ ERROR unresolved import `alloc` [E0432]
26 //~| Did you mean `a::alloc`?
27 mod d {
28 use alloc::HashMap;
29 //~^ ERROR unresolved import `alloc` [E0432]
30 //~| Did you mean `a::alloc`?
31 }
32 }
33 }
34 }