]> git.proxmox.com Git - rustc.git/blame - src/test/ui/privacy/privacy-ns2.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / privacy / privacy-ns2.stderr
CommitLineData
e74abb32 1error[E0423]: expected function, tuple struct or tuple variant, found trait `Bar`
0731742a 2 --> $DIR/privacy-ns2.rs:20:5
b7449926 3 |
532ac7d7 4LL | Bar();
e74abb32
XL
5 | ^^^ not a function, tuple struct or tuple variant
6 |
b7449926
XL
7help: possible better candidates are found in other modules, you can import them into scope
8 |
9LL | use foo1::Bar;
10 |
11LL | use foo2::Bar;
12 |
13LL | use foo3::Bar;
14 |
15
e74abb32 16error[E0423]: expected function, tuple struct or tuple variant, found trait `Bar`
0731742a 17 --> $DIR/privacy-ns2.rs:26:5
b7449926 18 |
e74abb32
XL
19LL | pub struct Baz;
20 | --------------- similarly named unit struct `Baz` defined here
21...
532ac7d7 22LL | Bar();
0731742a 23 | ^^^
e74abb32 24 |
0731742a
XL
25help: a unit struct with a similar name exists
26 |
532ac7d7 27LL | Baz();
0731742a 28 | ^^^
b7449926
XL
29help: possible better candidates are found in other modules, you can import them into scope
30 |
31LL | use foo1::Bar;
32 |
33LL | use foo2::Bar;
34 |
35LL | use foo3::Bar;
36 |
37
38error[E0573]: expected type, found function `Bar`
60c5eb7d 39 --> $DIR/privacy-ns2.rs:43:14
e74abb32
XL
40 |
41LL | let _x : Bar();
42 | ^^^^^ not a type
43 |
44help: use `=` if you meant to assign
45 |
46LL | let _x = Bar();
47 | ^
48help: possible better candidates are found in other modules, you can import them into scope
49 |
50LL | use foo1::Bar;
b7449926 51 |
e74abb32
XL
52LL | use foo2::Bar;
53 |
54LL | use foo3::Bar;
55 |
56
b7449926 57error[E0603]: trait `Bar` is private
60c5eb7d 58 --> $DIR/privacy-ns2.rs:63:15
b7449926 59 |
532ac7d7 60LL | use foo3::Bar;
0bf4aa26 61 | ^^^
b7449926
XL
62
63error[E0603]: trait `Bar` is private
60c5eb7d 64 --> $DIR/privacy-ns2.rs:67:15
b7449926 65 |
532ac7d7 66LL | use foo3::Bar;
0bf4aa26 67 | ^^^
b7449926
XL
68
69error[E0603]: trait `Bar` is private
60c5eb7d 70 --> $DIR/privacy-ns2.rs:74:16
b7449926 71 |
532ac7d7 72LL | use foo3::{Bar,Baz};
b7449926
XL
73 | ^^^
74
60c5eb7d
XL
75error[E0107]: wrong number of const arguments: expected 0, found 1
76 --> $DIR/privacy-ns2.rs:41:18
77 |
78LL | let _x : Box<Bar>;
79 | ^^^ unexpected const argument
80
81error[E0107]: wrong number of type arguments: expected 1, found 0
82 --> $DIR/privacy-ns2.rs:41:14
83 |
84LL | let _x : Box<Bar>;
85 | ^^^^^^^^ expected 1 type argument
86
87error[E0107]: wrong number of const arguments: expected 0, found 1
88 --> $DIR/privacy-ns2.rs:49:17
89 |
90LL | let _x: Box<Bar>;
91 | ^^^ unexpected const argument
92
93error[E0107]: wrong number of type arguments: expected 1, found 0
94 --> $DIR/privacy-ns2.rs:49:13
95 |
96LL | let _x: Box<Bar>;
97 | ^^^^^^^^ expected 1 type argument
98
99error: aborting due to 10 previous errors
b7449926 100
60c5eb7d
XL
101Some errors have detailed explanations: E0107, E0423, E0573, E0603.
102For more information about an error, try `rustc --explain E0107`.