fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0253]: `foo` is not directly importable 2 --> $DIR/use-from-trait.rs:1:5 3 | 4LL | use Trait::foo; 5 | ^^^^^^^^^^ cannot be imported directly 6 7error[E0253]: `Assoc` is not directly importable 8 --> $DIR/use-from-trait.rs:2:5 9 | 10LL | use Trait::Assoc; 11 | ^^^^^^^^^^^^ cannot be imported directly 12 13error[E0253]: `C` is not directly importable 14 --> $DIR/use-from-trait.rs:3:5 15 | 16LL | use Trait::C; 17 | ^^^^^^^^ cannot be imported directly 18 19error[E0432]: unresolved import `Foo` 20 --> $DIR/use-from-trait.rs:5:5 21 | 22LL | use Foo::new; 23 | ^^^ `Foo` is a struct, not a module 24 25error[E0432]: unresolved import `Foo` 26 --> $DIR/use-from-trait.rs:7:5 27 | 28LL | use Foo::C2; 29 | ^^^ `Foo` is a struct, not a module 30 31error: aborting due to 5 previous errors 32 33Some errors have detailed explanations: E0253, E0432. 34For more information about an error, try `rustc --explain E0253`.