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