]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0449]: unnecessary visibility qualifier |
0731742a | 2 | --> $DIR/priv-in-bad-locations.rs:1:1 |
b7449926 | 3 | | |
5869c6ff | 4 | LL | pub extern "C" { |
b7449926 XL |
5 | | ^^^ `pub` not permitted here because it's implied |
6 | | | |
7 | = note: place qualifiers on individual foreign items instead | |
8 | ||
9 | error[E0449]: unnecessary visibility qualifier | |
0731742a | 10 | --> $DIR/priv-in-bad-locations.rs:11:1 |
b7449926 | 11 | | |
532ac7d7 | 12 | LL | pub impl B {} |
b7449926 XL |
13 | | ^^^ `pub` not permitted here because it's implied |
14 | | | |
15 | = note: place qualifiers on individual impl items instead | |
16 | ||
17 | error[E0449]: unnecessary visibility qualifier | |
0731742a | 18 | --> $DIR/priv-in-bad-locations.rs:13:1 |
b7449926 | 19 | | |
532ac7d7 | 20 | LL | pub impl A for B { |
b7449926 XL |
21 | | ^^^ `pub` not permitted here because it's implied |
22 | ||
23 | error[E0449]: unnecessary visibility qualifier | |
0731742a | 24 | --> $DIR/priv-in-bad-locations.rs:14:5 |
b7449926 | 25 | | |
532ac7d7 | 26 | LL | pub fn foo(&self) {} |
b7449926 XL |
27 | | ^^^ `pub` not permitted here because it's implied |
28 | ||
29 | error: aborting due to 4 previous errors | |
30 | ||
31 | For more information about this error, try `rustc --explain E0449`. |