1 error[E0429]: `self` imports are only allowed within a { } list
2 --> $DIR/use-mod-4.rs:1:5
4 LL | use foo::self; //~ ERROR unresolved import `foo`
7 error[E0429]: `self` imports are only allowed within a { } list
8 --> $DIR/use-mod-4.rs:4:5
10 LL | use std::mem::self;
13 error[E0432]: unresolved import `foo`
14 --> $DIR/use-mod-4.rs:1:5
16 LL | use foo::self; //~ ERROR unresolved import `foo`
17 | ^^^ maybe a missing `extern crate foo;`?
19 error: aborting due to 3 previous errors
21 Some errors occurred: E0429, E0432.
22 For more information about an error, try `rustc --explain E0429`.