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