2017-07-23 15:15:45 -07:00
|
|
|
use foo::bar; //~ ERROR unresolved import `foo` [E0432]
|
2019-08-05 15:50:37 +01:00
|
|
|
//~^ maybe a missing crate `foo`?
|
2022-05-22 11:48:35 +09:00
|
|
|
//~| HELP consider adding `extern crate foo` to use the `foo` crate
|
2014-06-05 22:37:52 +01:00
|
|
|
|
2016-08-22 13:57:10 +08:00
|
|
|
use bar::Baz as x; //~ ERROR unresolved import `bar::Baz` [E0432]
|
2019-01-16 15:30:41 -05:00
|
|
|
//~| no `Baz` in `bar`
|
|
|
|
//~| HELP a similar name exists in the module
|
|
|
|
//~| SUGGESTION Bar
|
2013-05-14 00:42:10 -04:00
|
|
|
|
2016-08-22 13:57:10 +08:00
|
|
|
use food::baz; //~ ERROR unresolved import `food::baz`
|
2019-01-16 15:30:41 -05:00
|
|
|
//~| no `baz` in `food`
|
|
|
|
//~| HELP a similar name exists in the module
|
|
|
|
//~| SUGGESTION bag
|
2015-07-31 22:20:25 -07:00
|
|
|
|
2016-08-22 13:57:10 +08:00
|
|
|
use food::{beens as Foo}; //~ ERROR unresolved import `food::beens` [E0432]
|
2019-01-16 15:30:41 -05:00
|
|
|
//~| no `beens` in `food`
|
|
|
|
//~| HELP a similar name exists in the module
|
|
|
|
//~| SUGGESTION beans
|
2015-07-31 22:20:25 -07:00
|
|
|
|
2013-05-14 00:42:10 -04:00
|
|
|
mod bar {
|
2015-12-14 22:36:31 +05:30
|
|
|
pub struct Bar;
|
2013-05-14 00:42:10 -04:00
|
|
|
}
|
2015-07-31 22:20:25 -07:00
|
|
|
|
|
|
|
mod food {
|
2018-12-16 22:21:47 -05:00
|
|
|
pub use self::zug::baz::{self as bag, Foobar as beans};
|
2015-07-31 22:20:25 -07:00
|
|
|
|
|
|
|
mod zug {
|
|
|
|
pub mod baz {
|
2018-12-16 22:21:47 -05:00
|
|
|
pub struct Foobar;
|
2015-07-31 22:20:25 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-09-05 21:48:02 -04:00
|
|
|
|
|
|
|
mod m {
|
|
|
|
enum MyEnum {
|
|
|
|
MyVariant
|
|
|
|
}
|
|
|
|
|
2017-07-23 15:15:45 -07:00
|
|
|
use MyEnum::*; //~ ERROR unresolved import `MyEnum` [E0432]
|
2019-01-16 15:30:41 -05:00
|
|
|
//~| HELP a similar path exists
|
|
|
|
//~| SUGGESTION self::MyEnum
|
2016-09-05 21:48:02 -04:00
|
|
|
}
|
2016-09-05 23:08:21 -04:00
|
|
|
|
|
|
|
mod items {
|
|
|
|
enum Enum {
|
|
|
|
Variant
|
|
|
|
}
|
|
|
|
|
2017-07-23 15:15:45 -07:00
|
|
|
use Enum::*; //~ ERROR unresolved import `Enum` [E0432]
|
2019-01-16 15:30:41 -05:00
|
|
|
//~| HELP a similar path exists
|
|
|
|
//~| SUGGESTION self::Enum
|
2016-09-05 23:08:21 -04:00
|
|
|
|
|
|
|
fn item() {}
|
|
|
|
}
|
2018-08-23 02:19:38 +03:00
|
|
|
|
|
|
|
fn main() {}
|