1 error[E0253]: `foo` is not directly importable
2 --> $DIR/use-from-trait.rs:1:5
5 | ^^^^^^^^^^ cannot be imported directly
7 error[E0253]: `Assoc` is not directly importable
8 --> $DIR/use-from-trait.rs:2:5
10 LL | use Trait::Assoc;
11 | ^^^^^^^^^^^^ cannot be imported directly
13 error[E0253]: `C` is not directly importable
14 --> $DIR/use-from-trait.rs:3:5
17 | ^^^^^^^^ cannot be imported directly
19 error[E0432]: unresolved import `Foo`
20 --> $DIR/use-from-trait.rs:5:5
23 | ^^^ `Foo` is a struct, not a module
25 error[E0432]: unresolved import `Foo`
26 --> $DIR/use-from-trait.rs:7:5
29 | ^^^ `Foo` is a struct, not a module
31 error: aborting due to 5 previous errors
33 Some errors have detailed explanations: E0253, E0432.
34 For more information about an error, try `rustc --explain E0253`.