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