rust/src/test/ui/resolve_self_super_hint.rs
2018-12-25 21:08:33 -07:00

27 lines
685 B
Rust

#![feature(alloc)]
#![allow(unused_extern_crates)]
mod a {
extern crate alloc;
use alloc::HashMap;
//~^ ERROR unresolved import `alloc` [E0432]
//~| did you mean `self::alloc`?
mod b {
use alloc::HashMap;
//~^ ERROR unresolved import `alloc` [E0432]
//~| did you mean `super::alloc`?
mod c {
use alloc::HashMap;
//~^ ERROR unresolved import `alloc` [E0432]
//~| did you mean `a::alloc`?
mod d {
use alloc::HashMap;
//~^ ERROR unresolved import `alloc` [E0432]
//~| did you mean `a::alloc`?
}
}
}
}
fn main() {}