2022-10-21 04:50:28 -05:00
|
|
|
warning: unreachable `pub` item
|
2022-10-29 10:44:24 -05:00
|
|
|
--> $DIR/issue-103317.rs:7:5
|
2022-10-21 04:50:28 -05:00
|
|
|
|
|
|
|
|
LL | pub enum T {
|
|
|
|
| ---^^^^^^^
|
|
|
|
| |
|
|
|
|
| help: consider restricting its visibility: `pub(crate)`
|
|
|
|
|
|
|
|
|
= help: or consider exporting it for use by other crates
|
|
|
|
note: the lint level is defined here
|
2022-10-29 10:44:24 -05:00
|
|
|
--> $DIR/issue-103317.rs:4:8
|
2022-10-21 04:50:28 -05:00
|
|
|
|
|
|
|
|
LL | #[warn(unreachable_pub)]
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
warning: 1 warning emitted
|
|
|
|
|