1 warning: unreachable `pub` item
2 --> $DIR/unreachable_pub.rs:21:5
7 | help: consider restricting its visibility: `crate`
9 note: lint level defined here
10 --> $DIR/unreachable_pub.rs:17:9
12 LL | #![warn(unreachable_pub)]
14 = help: or consider exporting it for use by other crates
16 warning: unreachable `pub` item
17 --> $DIR/unreachable_pub.rs:22:24
19 LL | pub use std::env::{Args}; // braced-use has different item spans than unbraced
20 | ^^^^ help: consider restricting its visibility: `crate`
22 = help: or consider exporting it for use by other crates
24 warning: unreachable `pub` item
25 --> $DIR/unreachable_pub.rs:24:5
27 LL | pub struct Hydrogen {
30 | help: consider restricting its visibility: `crate`
32 = help: or consider exporting it for use by other crates
34 warning: unreachable `pub` field
35 --> $DIR/unreachable_pub.rs:26:9
37 LL | pub neutrons: usize,
40 | help: consider restricting its visibility: `crate`
42 warning: unreachable `pub` item
43 --> $DIR/unreachable_pub.rs:32:9
45 LL | pub fn count_neutrons(&self) -> usize { self.neutrons }
46 | ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
48 | help: consider restricting its visibility: `crate`
50 warning: unreachable `pub` item
51 --> $DIR/unreachable_pub.rs:36:5
53 LL | pub enum Helium {}
56 | help: consider restricting its visibility: `crate`
58 = help: or consider exporting it for use by other crates
60 warning: unreachable `pub` item
61 --> $DIR/unreachable_pub.rs:37:5
63 LL | pub union Lithium { c1: usize, c2: u8 }
66 | help: consider restricting its visibility: `crate`
68 = help: or consider exporting it for use by other crates
70 warning: unreachable `pub` item
71 --> $DIR/unreachable_pub.rs:38:5
73 LL | pub fn beryllium() {}
76 | help: consider restricting its visibility: `crate`
78 = help: or consider exporting it for use by other crates
80 warning: unreachable `pub` item
81 --> $DIR/unreachable_pub.rs:39:5
83 LL | pub trait Boron {}
86 | help: consider restricting its visibility: `crate`
88 = help: or consider exporting it for use by other crates
90 warning: unreachable `pub` item
91 --> $DIR/unreachable_pub.rs:40:5
93 LL | pub const CARBON: usize = 1;
94 | ---^^^^^^^^^^^^^^^^^^^^^^^^^
96 | help: consider restricting its visibility: `crate`
98 = help: or consider exporting it for use by other crates
100 warning: unreachable `pub` item
101 --> $DIR/unreachable_pub.rs:41:5
103 LL | pub static NITROGEN: usize = 2;
104 | ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^
106 | help: consider restricting its visibility: `crate`
108 = help: or consider exporting it for use by other crates
110 warning: unreachable `pub` item
111 --> $DIR/unreachable_pub.rs:42:5
113 LL | pub type Oxygen = bool;
114 | ---^^^^^^^^^^^^^^^^^^^^
116 | help: consider restricting its visibility: `crate`
118 = help: or consider exporting it for use by other crates
120 warning: unreachable `pub` item
121 --> $DIR/unreachable_pub.rs:45:47
123 LL | ($visibility: vis, $name: ident) => { $visibility struct $name {} }
124 | -----------^^^^^^^^^^^^^
126 | help: consider restricting its visibility: `crate`
128 LL | define_empty_struct_with_visibility!(pub, Fluorine);
129 | ---------------------------------------------------- in this macro invocation
131 = help: or consider exporting it for use by other crates
133 warning: unreachable `pub` item
134 --> $DIR/unreachable_pub.rs:50:9
136 LL | pub fn catalyze() -> bool;
137 | ---^^^^^^^^^^^^^^^^^^^^^^^
139 | help: consider restricting its visibility: `crate`
141 = help: or consider exporting it for use by other crates