]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/unreachable_pub.stderr
ad88c55d54013a92c97697454bdfcfcac7ef4fb4
[rust.git] / src / test / ui / lint / unreachable_pub.stderr
1 warning: unreachable `pub` item
2   --> $DIR/unreachable_pub.rs:21:5
3    |
4 LL |     pub use std::fmt;
5    |     ---^^^^^^^^^^^^^^
6    |     |
7    |     help: consider restricting its visibility: `crate`
8    |
9 note: lint level defined here
10   --> $DIR/unreachable_pub.rs:17:9
11    |
12 LL | #![warn(unreachable_pub)]
13    |         ^^^^^^^^^^^^^^^
14    = help: or consider exporting it for use by other crates
15
16 warning: unreachable `pub` item
17   --> $DIR/unreachable_pub.rs:22:24
18    |
19 LL |     pub use std::env::{Args}; // braced-use has different item spans than unbraced
20    |                        ^^^^ help: consider restricting its visibility: `crate`
21    |
22    = help: or consider exporting it for use by other crates
23
24 warning: unreachable `pub` item
25   --> $DIR/unreachable_pub.rs:24:5
26    |
27 LL |     pub struct Hydrogen {
28    |     ---^^^^^^^^^^^^^^^^
29    |     |
30    |     help: consider restricting its visibility: `crate`
31    |
32    = help: or consider exporting it for use by other crates
33
34 warning: unreachable `pub` field
35   --> $DIR/unreachable_pub.rs:26:9
36    |
37 LL |         pub neutrons: usize,
38    |         ---^^^^^^^^^^^^^^^^
39    |         |
40    |         help: consider restricting its visibility: `crate`
41
42 warning: unreachable `pub` item
43   --> $DIR/unreachable_pub.rs:32:9
44    |
45 LL |         pub fn count_neutrons(&self) -> usize { self.neutrons }
46    |         ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
47    |         |
48    |         help: consider restricting its visibility: `crate`
49
50 warning: unreachable `pub` item
51   --> $DIR/unreachable_pub.rs:36:5
52    |
53 LL |     pub enum Helium {}
54    |     ---^^^^^^^^^^^^
55    |     |
56    |     help: consider restricting its visibility: `crate`
57    |
58    = help: or consider exporting it for use by other crates
59
60 warning: unreachable `pub` item
61   --> $DIR/unreachable_pub.rs:37:5
62    |
63 LL |     pub union Lithium { c1: usize, c2: u8 }
64    |     ---^^^^^^^^^^^^^^
65    |     |
66    |     help: consider restricting its visibility: `crate`
67    |
68    = help: or consider exporting it for use by other crates
69
70 warning: unreachable `pub` item
71   --> $DIR/unreachable_pub.rs:38:5
72    |
73 LL |     pub fn beryllium() {}
74    |     ---^^^^^^^^^^^^^^^
75    |     |
76    |     help: consider restricting its visibility: `crate`
77    |
78    = help: or consider exporting it for use by other crates
79
80 warning: unreachable `pub` item
81   --> $DIR/unreachable_pub.rs:39:5
82    |
83 LL |     pub trait Boron {}
84    |     ---^^^^^^^^^^^^
85    |     |
86    |     help: consider restricting its visibility: `crate`
87    |
88    = help: or consider exporting it for use by other crates
89
90 warning: unreachable `pub` item
91   --> $DIR/unreachable_pub.rs:40:5
92    |
93 LL |     pub const CARBON: usize = 1;
94    |     ---^^^^^^^^^^^^^^^^^^^^^^^^^
95    |     |
96    |     help: consider restricting its visibility: `crate`
97    |
98    = help: or consider exporting it for use by other crates
99
100 warning: unreachable `pub` item
101   --> $DIR/unreachable_pub.rs:41:5
102    |
103 LL |     pub static NITROGEN: usize = 2;
104    |     ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^
105    |     |
106    |     help: consider restricting its visibility: `crate`
107    |
108    = help: or consider exporting it for use by other crates
109
110 warning: unreachable `pub` item
111   --> $DIR/unreachable_pub.rs:42:5
112    |
113 LL |     pub type Oxygen = bool;
114    |     ---^^^^^^^^^^^^^^^^^^^^
115    |     |
116    |     help: consider restricting its visibility: `crate`
117    |
118    = help: or consider exporting it for use by other crates
119
120 warning: unreachable `pub` item
121   --> $DIR/unreachable_pub.rs:45:47
122    |
123 LL |         ($visibility: vis, $name: ident) => { $visibility struct $name {} }
124    |                                               -----------^^^^^^^^^^^^^
125    |                                               |
126    |                                               help: consider restricting its visibility: `crate`
127 LL |     }
128 LL |     define_empty_struct_with_visibility!(pub, Fluorine);
129    |     ---------------------------------------------------- in this macro invocation
130    |
131    = help: or consider exporting it for use by other crates
132
133 warning: unreachable `pub` item
134   --> $DIR/unreachable_pub.rs:50:9
135    |
136 LL |         pub fn catalyze() -> bool;
137    |         ---^^^^^^^^^^^^^^^^^^^^^^^
138    |         |
139    |         help: consider restricting its visibility: `crate`
140    |
141    = help: or consider exporting it for use by other crates
142