1 error[E0253]: `foo` is not directly importable
2 --> $DIR/use-from-trait-xc.rs:5:5
4 LL | use use_from_trait_xc::Trait::foo;
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot be imported directly
7 error[E0253]: `Assoc` is not directly importable
8 --> $DIR/use-from-trait-xc.rs:8:5
10 LL | use use_from_trait_xc::Trait::Assoc;
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot be imported directly
13 error[E0253]: `CONST` is not directly importable
14 --> $DIR/use-from-trait-xc.rs:11:5
16 LL | use use_from_trait_xc::Trait::CONST;
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot be imported directly
19 error[E0432]: unresolved import `use_from_trait_xc::Foo`
20 --> $DIR/use-from-trait-xc.rs:14:24
22 LL | use use_from_trait_xc::Foo::new;
23 | ^^^ `Foo` is a struct, not a module
25 error[E0432]: unresolved import `use_from_trait_xc::Foo`
26 --> $DIR/use-from-trait-xc.rs:17:24
28 LL | use use_from_trait_xc::Foo::C;
29 | ^^^ `Foo` is a struct, not a module
31 error[E0432]: unresolved import `use_from_trait_xc::Bar`
32 --> $DIR/use-from-trait-xc.rs:20:24
34 LL | use use_from_trait_xc::Bar::new as bnew;
35 | ^^^ `Bar` is a struct, not a module
37 error[E0432]: unresolved import `use_from_trait_xc::Baz::new`
38 --> $DIR/use-from-trait-xc.rs:23:5
40 LL | use use_from_trait_xc::Baz::new as baznew;
41 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `new` in `sub::Baz`
43 error[E0603]: struct `Foo` is private
44 --> $DIR/use-from-trait-xc.rs:14:24
46 LL | use use_from_trait_xc::Foo::new;
49 note: the struct `Foo` is defined here
50 --> $DIR/auxiliary/use-from-trait-xc.rs:9:1
55 error[E0603]: struct `Foo` is private
56 --> $DIR/use-from-trait-xc.rs:17:24
58 LL | use use_from_trait_xc::Foo::C;
61 note: the struct `Foo` is defined here
62 --> $DIR/auxiliary/use-from-trait-xc.rs:9:1
67 error: aborting due to 9 previous errors
69 Some errors have detailed explanations: E0253, E0432, E0603.
70 For more information about an error, try `rustc --explain E0253`.