]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lint/unreachable_pub.stderr
New upstream version 1.23.0+dfsg1
[rustc.git] / src / test / ui / lint / unreachable_pub.stderr
1 warning: unreachable `pub` item
2 --> $DIR/unreachable_pub.rs:19:5
3 |
4 19 | 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:15:9
11 |
12 15 | #![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:21:5
18 |
19 21 | 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:23:9
28 |
29 23 | pub neutrons: usize,
30 | ---^^^^^^^^^^^^^^^^
31 | |
32 | help: consider restricting its visibility: `crate`
33
34 warning: unreachable `pub` item
35 --> $DIR/unreachable_pub.rs:29:9
36 |
37 29 | 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:33:5
44 |
45 33 | 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:34:5
54 |
55 34 | 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:35:5
64 |
65 35 | 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:36:5
74 |
75 36 | 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:37:5
84 |
85 37 | 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:38:5
94 |
95 38 | 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:39:5
104 |
105 39 | 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:42:47
114 |
115 42 | ($visibility: vis, $name: ident) => { $visibility struct $name {} }
116 | -----------^^^^^^^^^^^^^
117 | |
118 | help: consider restricting its visibility: `crate`
119 43 | }
120 44 | 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:47:9
127 |
128 47 | 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