rust/tests/ui/imports/resolve_self_super_hint.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
781 B
Rust
Raw Normal View History

mod a {
2017-06-13 17:52:59 -05:00
extern crate alloc;
use alloc::HashMap;
//~^ ERROR unresolved import `alloc` [E0432]
2019-01-16 14:30:41 -06:00
//~| HELP a similar path exists
//~| SUGGESTION self::alloc
mod b {
2017-06-13 17:52:59 -05:00
use alloc::HashMap;
//~^ ERROR unresolved import `alloc` [E0432]
2019-01-16 14:30:41 -06:00
//~| HELP a similar path exists
//~| SUGGESTION super::alloc
mod c {
2017-06-13 17:52:59 -05:00
use alloc::HashMap;
//~^ ERROR unresolved import `alloc` [E0432]
2019-01-16 14:30:41 -06:00
//~| HELP a similar path exists
//~| SUGGESTION a::alloc
mod d {
2017-06-13 17:52:59 -05:00
use alloc::HashMap;
//~^ ERROR unresolved import `alloc` [E0432]
2019-01-16 14:30:41 -06:00
//~| HELP a similar path exists
//~| SUGGESTION a::alloc
}
}
}
}
fn main() {}