]> git.proxmox.com Git - rustc.git/blame - src/test/ui/privacy/priv-in-bad-locations.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / privacy / priv-in-bad-locations.stderr
CommitLineData
b7449926 1error[E0449]: unnecessary visibility qualifier
0731742a 2 --> $DIR/priv-in-bad-locations.rs:1:1
b7449926 3 |
5869c6ff 4LL | 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
9error[E0449]: unnecessary visibility qualifier
0731742a 10 --> $DIR/priv-in-bad-locations.rs:11:1
b7449926 11 |
532ac7d7 12LL | 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
17error[E0449]: unnecessary visibility qualifier
0731742a 18 --> $DIR/priv-in-bad-locations.rs:13:1
b7449926 19 |
532ac7d7 20LL | pub impl A for B {
b7449926
XL
21 | ^^^ `pub` not permitted here because it's implied
22
23error[E0449]: unnecessary visibility qualifier
0731742a 24 --> $DIR/priv-in-bad-locations.rs:14:5
b7449926 25 |
532ac7d7 26LL | pub fn foo(&self) {}
b7449926
XL
27 | ^^^ `pub` not permitted here because it's implied
28
29error: aborting due to 4 previous errors
30
31For more information about this error, try `rustc --explain E0449`.