Files
rust/src/test/ui/resolve_self_super_hint.rs

27 lines
685 B
Rust
Raw Normal View History

2017-06-13 15:52:59 -07:00
#![feature(alloc)]
2017-06-24 17:48:27 +09:00
#![allow(unused_extern_crates)]
mod a {
2017-06-13 15:52:59 -07:00
extern crate alloc;
use alloc::HashMap;
//~^ ERROR unresolved import `alloc` [E0432]
//~| did you mean `self::alloc`?
mod b {
2017-06-13 15:52:59 -07:00
use alloc::HashMap;
//~^ ERROR unresolved import `alloc` [E0432]
//~| did you mean `super::alloc`?
mod c {
2017-06-13 15:52:59 -07:00
use alloc::HashMap;
//~^ ERROR unresolved import `alloc` [E0432]
//~| did you mean `a::alloc`?
mod d {
2017-06-13 15:52:59 -07:00
use alloc::HashMap;
//~^ ERROR unresolved import `alloc` [E0432]
//~| did you mean `a::alloc`?
}
}
}
}
fn main() {}