fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0429]: `self` imports are only allowed within a { } list 2 --> $DIR/use-mod-4.rs:1:8 3 | 4LL | use foo::self; 5 | ^^^^^^ 6 | 7help: consider importing the module directly 8 | 9LL - use foo::self; 10LL + use foo; 11 | 12help: alternatively, use the multi-path `use` syntax to import `self` 13 | 14LL | use foo::{self}; 15 | + + 16 17error[E0429]: `self` imports are only allowed within a { } list 18 --> $DIR/use-mod-4.rs:4:13 19 | 20LL | use std::mem::self; 21 | ^^^^^^ 22 | 23help: consider importing the module directly 24 | 25LL - use std::mem::self; 26LL + use std::mem; 27 | 28help: alternatively, use the multi-path `use` syntax to import `self` 29 | 30LL | use std::mem::{self}; 31 | + + 32 33error[E0432]: unresolved import `foo` 34 --> $DIR/use-mod-4.rs:1:5 35 | 36LL | use foo::self; 37 | ^^^^^^^^^ no `foo` in the root 38 39error: aborting due to 3 previous errors 40 41Some errors have detailed explanations: E0429, E0432. 42For more information about an error, try `rustc --explain E0429`.