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