]> git.lizzy.rs Git - rust.git/blob - src/test/ui/use/use-from-trait.stderr
Merge commit 'cd4810de42c57b64b74dae09c530a4c3a41f87b9' into libgccjit-codegen
[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:2: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:3: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:5:5
21    |
22 LL | use Foo::new;
23    |     ^^^ `Foo` is a struct, not a module
24
25 error[E0432]: unresolved import `Foo`
26   --> $DIR/use-from-trait.rs:7:5
27    |
28 LL | use Foo::C2;
29    |     ^^^ `Foo` is a struct, not a module
30
31 error: aborting due to 5 previous errors
32
33 Some errors have detailed explanations: E0253, E0432.
34 For more information about an error, try `rustc --explain E0253`.