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