mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
36 lines
945 B
Plaintext
36 lines
945 B
Plaintext
error[E0449]: visibility qualifiers are not permitted here
|
|
--> $DIR/priv-in-bad-locations.rs:1:1
|
|
|
|
|
LL | pub extern "C" {
|
|
| ^^^
|
|
|
|
|
= note: place qualifiers on individual foreign items instead
|
|
|
|
error[E0449]: visibility qualifiers are not permitted here
|
|
--> $DIR/priv-in-bad-locations.rs:11:1
|
|
|
|
|
LL | pub impl B {}
|
|
| ^^^
|
|
|
|
|
= note: place qualifiers on individual impl items instead
|
|
|
|
error[E0449]: visibility qualifiers are not permitted here
|
|
--> $DIR/priv-in-bad-locations.rs:13:1
|
|
|
|
|
LL | pub impl A for B {
|
|
| ^^^
|
|
|
|
|
= note: trait items always share the visibility of their trait
|
|
|
|
error[E0449]: visibility qualifiers are not permitted here
|
|
--> $DIR/priv-in-bad-locations.rs:14:5
|
|
|
|
|
LL | pub fn foo(&self) {}
|
|
| ^^^
|
|
|
|
|
= note: trait items always share the visibility of their trait
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0449`.
|