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