]> git.lizzy.rs Git - rust.git/blob - src/test/ui/use/use-from-trait-xc.stderr
Rollup merge of #56242 - GuillaumeGomez:iterator-missing-link, r=Centril
[rust.git] / src / test / ui / use / use-from-trait-xc.stderr
1 error[E0253]: `foo` is not directly importable
2   --> $DIR/use-from-trait-xc.rs:15:5
3    |
4 LL | use use_from_trait_xc::Trait::foo;
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot be imported directly
6
7 error[E0253]: `Assoc` is not directly importable
8   --> $DIR/use-from-trait-xc.rs:18:5
9    |
10 LL | use use_from_trait_xc::Trait::Assoc;
11    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot be imported directly
12
13 error[E0253]: `CONST` is not directly importable
14   --> $DIR/use-from-trait-xc.rs:21:5
15    |
16 LL | use use_from_trait_xc::Trait::CONST;
17    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot be imported directly
18
19 error[E0432]: unresolved import `use_from_trait_xc::Foo`
20   --> $DIR/use-from-trait-xc.rs:24:24
21    |
22 LL | use use_from_trait_xc::Foo::new; //~ ERROR struct `Foo` is private
23    |                        ^^^ not a module `Foo`
24
25 error[E0432]: unresolved import `use_from_trait_xc::Foo`
26   --> $DIR/use-from-trait-xc.rs:27:24
27    |
28 LL | use use_from_trait_xc::Foo::C; //~ ERROR struct `Foo` is private
29    |                        ^^^ not a module `Foo`
30
31 error[E0432]: unresolved import `use_from_trait_xc::Bar`
32   --> $DIR/use-from-trait-xc.rs:30:24
33    |
34 LL | use use_from_trait_xc::Bar::new as bnew;
35    |                        ^^^ not a module `Bar`
36
37 error[E0432]: unresolved import `use_from_trait_xc::Baz::new`
38   --> $DIR/use-from-trait-xc.rs:33:5
39    |
40 LL | use use_from_trait_xc::Baz::new as baznew;
41    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `new` in `Baz`
42
43 error[E0603]: struct `Foo` is private
44   --> $DIR/use-from-trait-xc.rs:24:24
45    |
46 LL | use use_from_trait_xc::Foo::new; //~ ERROR struct `Foo` is private
47    |                        ^^^
48
49 error[E0603]: struct `Foo` is private
50   --> $DIR/use-from-trait-xc.rs:27:24
51    |
52 LL | use use_from_trait_xc::Foo::C; //~ ERROR struct `Foo` is private
53    |                        ^^^
54
55 error: aborting due to 9 previous errors
56
57 Some errors occurred: E0253, E0432, E0603.
58 For more information about an error, try `rustc --explain E0253`.