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 17 | #![warn(unreachable_pub)]
14 = help: or consider exporting it for use by other crates
16 warning: unreachable `pub` item
17 --> $DIR/unreachable_pub.rs:23:5
19 23 | pub struct Hydrogen {
22 | help: consider restricting its visibility: `crate`
24 = help: or consider exporting it for use by other crates
26 warning: unreachable `pub` field
27 --> $DIR/unreachable_pub.rs:25:9
29 25 | pub neutrons: usize,
32 | help: consider restricting its visibility: `crate`
34 warning: unreachable `pub` item
35 --> $DIR/unreachable_pub.rs:31:9
37 31 | pub fn count_neutrons(&self) -> usize { self.neutrons }
38 | ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
40 | help: consider restricting its visibility: `crate`
42 warning: unreachable `pub` item
43 --> $DIR/unreachable_pub.rs:35:5
45 35 | pub enum Helium {}
48 | help: consider restricting its visibility: `crate`
50 = help: or consider exporting it for use by other crates
52 warning: unreachable `pub` item
53 --> $DIR/unreachable_pub.rs:36:5
55 36 | pub union Lithium { c1: usize, c2: u8 }
58 | help: consider restricting its visibility: `crate`
60 = help: or consider exporting it for use by other crates
62 warning: unreachable `pub` item
63 --> $DIR/unreachable_pub.rs:37:5
65 37 | pub fn beryllium() {}
68 | help: consider restricting its visibility: `crate`
70 = help: or consider exporting it for use by other crates
72 warning: unreachable `pub` item
73 --> $DIR/unreachable_pub.rs:38:5
75 38 | pub trait Boron {}
78 | help: consider restricting its visibility: `crate`
80 = help: or consider exporting it for use by other crates
82 warning: unreachable `pub` item
83 --> $DIR/unreachable_pub.rs:39:5
85 39 | pub const CARBON: usize = 1;
86 | ---^^^^^^^^^^^^^^^^^^^^^^^^^
88 | help: consider restricting its visibility: `crate`
90 = help: or consider exporting it for use by other crates
92 warning: unreachable `pub` item
93 --> $DIR/unreachable_pub.rs:40:5
95 40 | pub static NITROGEN: usize = 2;
96 | ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^
98 | help: consider restricting its visibility: `crate`
100 = help: or consider exporting it for use by other crates
102 warning: unreachable `pub` item
103 --> $DIR/unreachable_pub.rs:41:5
105 41 | pub type Oxygen = bool;
106 | ---^^^^^^^^^^^^^^^^^^^^
108 | help: consider restricting its visibility: `crate`
110 = help: or consider exporting it for use by other crates
112 warning: unreachable `pub` item
113 --> $DIR/unreachable_pub.rs:44:47
115 44 | ($visibility: vis, $name: ident) => { $visibility struct $name {} }
116 | -----------^^^^^^^^^^^^^
118 | help: consider restricting its visibility: `crate`
120 46 | define_empty_struct_with_visibility!(pub, Fluorine);
121 | ---------------------------------------------------- in this macro invocation
123 = help: or consider exporting it for use by other crates
125 warning: unreachable `pub` item
126 --> $DIR/unreachable_pub.rs:49:9
128 49 | pub fn catalyze() -> bool;
129 | ---^^^^^^^^^^^^^^^^^^^^^^^
131 | help: consider restricting its visibility: `crate`
133 = help: or consider exporting it for use by other crates