fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
2.2 KiB70 linesraw
1error[E0253]: `foo` is not directly importable
2  --> $DIR/use-from-trait-xc.rs:5:5
3   |
4LL | use use_from_trait_xc::Trait::foo;
5   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot be imported directly
6
7error[E0253]: `Assoc` is not directly importable
8  --> $DIR/use-from-trait-xc.rs:8:5
9   |
10LL | use use_from_trait_xc::Trait::Assoc;
11   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot be imported directly
12
13error[E0253]: `CONST` is not directly importable
14  --> $DIR/use-from-trait-xc.rs:11:5
15   |
16LL | use use_from_trait_xc::Trait::CONST;
17   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot be imported directly
18
19error[E0432]: unresolved import `use_from_trait_xc::Foo`
20  --> $DIR/use-from-trait-xc.rs:14:24
21   |
22LL | use use_from_trait_xc::Foo::new;
23   |                        ^^^ `Foo` is a struct, not a module
24
25error[E0432]: unresolved import `use_from_trait_xc::Foo`
26  --> $DIR/use-from-trait-xc.rs:17:24
27   |
28LL | use use_from_trait_xc::Foo::C;
29   |                        ^^^ `Foo` is a struct, not a module
30
31error[E0432]: unresolved import `use_from_trait_xc::Bar`
32  --> $DIR/use-from-trait-xc.rs:20:24
33   |
34LL | use use_from_trait_xc::Bar::new as bnew;
35   |                        ^^^ `Bar` is a struct, not a module
36
37error[E0432]: unresolved import `use_from_trait_xc::Baz::new`
38  --> $DIR/use-from-trait-xc.rs:23:5
39   |
40LL | use use_from_trait_xc::Baz::new as baznew;
41   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `new` in `Baz`
42
43error[E0603]: struct `Foo` is private
44  --> $DIR/use-from-trait-xc.rs:14:24
45   |
46LL | use use_from_trait_xc::Foo::new;
47   |                        ^^^ this struct is private
48   |
49note: the struct `Foo` is defined here
50  --> $DIR/auxiliary/use-from-trait-xc.rs:9:1
51   |
52LL | struct Foo;
53   | ^^^^^^^^^^^
54
55error[E0603]: struct `Foo` is private
56  --> $DIR/use-from-trait-xc.rs:17:24
57   |
58LL | use use_from_trait_xc::Foo::C;
59   |                        ^^^ this struct is private
60   |
61note: the struct `Foo` is defined here
62  --> $DIR/auxiliary/use-from-trait-xc.rs:9:1
63   |
64LL | struct Foo;
65   | ^^^^^^^^^^^
66
67error: aborting due to 9 previous errors
68
69Some errors have detailed explanations: E0253, E0432, E0603.
70For more information about an error, try `rustc --explain E0253`.