2024-07-23 19:43:46 +00:00
|
|
|
use foo::bar;
|
|
|
|
//~^ ERROR unresolved import `foo` [E0432]
|
|
|
|
//~| NOTE you might be missing crate `foo`
|
2024-07-24 19:31:02 +00:00
|
|
|
//~| HELP consider importing the `foo` crate
|
|
|
|
//~| SUGGESTION extern crate foo;
|
2024-07-23 19:43:46 +00:00
|
|
|
|
|
|
|
use bar::Baz as x;
|
|
|
|
//~^ ERROR unresolved import `bar::Baz` [E0432]
|
|
|
|
//~| NOTE no `Baz` in `bar`
|
|
|
|
//~| HELP a similar name exists in the module
|
|
|
|
//~| SUGGESTION Bar
|
|
|
|
|
|
|
|
use food::baz;
|
|
|
|
//~^ ERROR unresolved import `food::baz`
|
|
|
|
//~| NOTE no `baz` in `food`
|
|
|
|
//~| HELP a similar name exists in the module
|
|
|
|
//~| SUGGESTION bag
|
|
|
|
|
|
|
|
use food::{beens as Foo};
|
|
|
|
//~^ ERROR unresolved import `food::beens` [E0432]
|
|
|
|
//~| NOTE 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
|
|
|
|
}
|
|
|
|
|
2024-07-23 19:43:46 +00:00
|
|
|
use MyEnum::*;
|
|
|
|
//~^ ERROR unresolved import `MyEnum` [E0432]
|
|
|
|
//~| 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
|
|
|
|
}
|
|
|
|
|
2024-07-23 19:43:46 +00:00
|
|
|
use Enum::*;
|
|
|
|
//~^ ERROR unresolved import `Enum` [E0432]
|
|
|
|
//~| 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() {}
|