2023-04-03 22:28:55 -05:00
|
|
|
error[E0449]: visibility qualifiers are not permitted here
|
2019-05-31 13:50:04 -07:00
|
|
|
--> $DIR/issue-28433.rs:2:5
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
2019-03-08 14:35:38 -08:00
|
|
|
LL | pub Duck,
|
2023-04-03 22:28:55 -05:00
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
= note: enum variants and their fields always share the visibility of the enum they are in
|
2018-07-15 14:11:54 -07:00
|
|
|
|
2023-04-03 22:28:55 -05:00
|
|
|
error[E0449]: visibility qualifiers are not permitted here
|
2019-05-31 13:50:04 -07:00
|
|
|
--> $DIR/issue-28433.rs:5:5
|
2019-03-09 15:14:22 -08:00
|
|
|
|
|
|
|
|
LL | pub(crate) Dove
|
2019-11-07 11:26:36 +01:00
|
|
|
| ^^^^^^^^^^
|
2023-04-03 22:28:55 -05:00
|
|
|
|
|
|
|
|
= note: enum variants and their fields always share the visibility of the enum they are in
|
2019-03-09 15:14:22 -08:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2018-07-15 14:11:54 -07:00
|
|
|
|
2019-11-07 11:26:36 +01:00
|
|
|
For more information about this error, try `rustc --explain E0449`.
|