]> git.lizzy.rs Git - rust.git/blob - tests/ui/replace_consts.stderr
7bc7f30276b2413f679627046fefa62ecb9820db
[rust.git] / tests / ui / replace_consts.stderr
1 error: using `ATOMIC_BOOL_INIT`
2   --> $DIR/replace_consts.rs:16:17
3    |
4 16 |     { let foo = ATOMIC_BOOL_INIT; };
5    |                 ^^^^^^^^^^^^^^^^ help: try this: `AtomicBool::new(false)`
6    |
7 note: lint level defined here
8   --> $DIR/replace_consts.rs:3:9
9    |
10 3  | #![deny(replace_consts)]
11    |         ^^^^^^^^^^^^^^
12 error: using `ATOMIC_ISIZE_INIT`
13   --> $DIR/replace_consts.rs:17:17
14    |
15 17 |     { let foo = ATOMIC_ISIZE_INIT; };
16    |                 ^^^^^^^^^^^^^^^^^ help: try this: `AtomicIsize::new(0)`
17 error: using `ATOMIC_I8_INIT`
18   --> $DIR/replace_consts.rs:18:17
19    |
20 18 |     { let foo = ATOMIC_I8_INIT; };
21    |                 ^^^^^^^^^^^^^^ help: try this: `AtomicI8::new(0)`
22 error: using `ATOMIC_I16_INIT`
23   --> $DIR/replace_consts.rs:19:17
24    |
25 19 |     { let foo = ATOMIC_I16_INIT; };
26    |                 ^^^^^^^^^^^^^^^ help: try this: `AtomicI16::new(0)`
27 error: using `ATOMIC_I32_INIT`
28   --> $DIR/replace_consts.rs:20:17
29    |
30 20 |     { let foo = ATOMIC_I32_INIT; };
31    |                 ^^^^^^^^^^^^^^^ help: try this: `AtomicI32::new(0)`
32 error: using `ATOMIC_I64_INIT`
33   --> $DIR/replace_consts.rs:21:17
34    |
35 21 |     { let foo = ATOMIC_I64_INIT; };
36    |                 ^^^^^^^^^^^^^^^ help: try this: `AtomicI64::new(0)`
37 error: using `ATOMIC_USIZE_INIT`
38   --> $DIR/replace_consts.rs:22:17
39    |
40 22 |     { let foo = ATOMIC_USIZE_INIT; };
41    |                 ^^^^^^^^^^^^^^^^^ help: try this: `AtomicUsize::new(0)`
42 error: using `ATOMIC_U8_INIT`
43   --> $DIR/replace_consts.rs:23:17
44    |
45 23 |     { let foo = ATOMIC_U8_INIT; };
46    |                 ^^^^^^^^^^^^^^ help: try this: `AtomicU8::new(0)`
47 error: using `ATOMIC_U16_INIT`
48   --> $DIR/replace_consts.rs:24:17
49    |
50 24 |     { let foo = ATOMIC_U16_INIT; };
51    |                 ^^^^^^^^^^^^^^^ help: try this: `AtomicU16::new(0)`
52 error: using `ATOMIC_U32_INIT`
53   --> $DIR/replace_consts.rs:25:17
54    |
55 25 |     { let foo = ATOMIC_U32_INIT; };
56    |                 ^^^^^^^^^^^^^^^ help: try this: `AtomicU32::new(0)`
57 error: using `ATOMIC_U64_INIT`
58   --> $DIR/replace_consts.rs:26:17
59    |
60 26 |     { let foo = ATOMIC_U64_INIT; };
61    |                 ^^^^^^^^^^^^^^^ help: try this: `AtomicU64::new(0)`
62 error: using `MIN`
63   --> $DIR/replace_consts.rs:28:17
64    |
65 28 |     { let foo = std::isize::MIN; };
66    |                 ^^^^^^^^^^^^^^^ help: try this: `isize::min_value()`
67 error: using `MIN`
68   --> $DIR/replace_consts.rs:29:17
69    |
70 29 |     { let foo = std::i8::MIN; };
71    |                 ^^^^^^^^^^^^ help: try this: `i8::min_value()`
72 error: using `MIN`
73   --> $DIR/replace_consts.rs:30:17
74    |
75 30 |     { let foo = std::i16::MIN; };
76    |                 ^^^^^^^^^^^^^ help: try this: `i16::min_value()`
77 error: using `MIN`
78   --> $DIR/replace_consts.rs:31:17
79    |
80 31 |     { let foo = std::i32::MIN; };
81    |                 ^^^^^^^^^^^^^ help: try this: `i32::min_value()`
82 error: using `MIN`
83   --> $DIR/replace_consts.rs:32:17
84    |
85 32 |     { let foo = std::i64::MIN; };
86    |                 ^^^^^^^^^^^^^ help: try this: `i64::min_value()`
87 error: using `MIN`
88   --> $DIR/replace_consts.rs:33:17
89    |
90 33 |     { let foo = std::i128::MIN; };
91    |                 ^^^^^^^^^^^^^^ help: try this: `i128::min_value()`
92 error: using `MIN`
93   --> $DIR/replace_consts.rs:34:17
94    |
95 34 |     { let foo = std::usize::MIN; };
96    |                 ^^^^^^^^^^^^^^^ help: try this: `usize::min_value()`
97 error: using `MIN`
98   --> $DIR/replace_consts.rs:35:17
99    |
100 35 |     { let foo = std::u8::MIN; };
101    |                 ^^^^^^^^^^^^ help: try this: `u8::min_value()`
102 error: using `MIN`
103   --> $DIR/replace_consts.rs:36:17
104    |
105 36 |     { let foo = std::u16::MIN; };
106    |                 ^^^^^^^^^^^^^ help: try this: `u16::min_value()`
107 error: using `MIN`
108   --> $DIR/replace_consts.rs:37:17
109    |
110 37 |     { let foo = std::u32::MIN; };
111    |                 ^^^^^^^^^^^^^ help: try this: `u32::min_value()`
112 error: using `MIN`
113   --> $DIR/replace_consts.rs:38:17
114    |
115 38 |     { let foo = std::u64::MIN; };
116    |                 ^^^^^^^^^^^^^ help: try this: `u64::min_value()`
117 error: using `MIN`
118   --> $DIR/replace_consts.rs:39:17
119    |
120 39 |     { let foo = std::u128::MIN; };
121    |                 ^^^^^^^^^^^^^^ help: try this: `u128::min_value()`
122 error: using `MAX`
123   --> $DIR/replace_consts.rs:41:17
124    |
125 41 |     { let foo = std::isize::MAX; };
126    |                 ^^^^^^^^^^^^^^^ help: try this: `isize::max_value()`
127 error: using `MAX`
128   --> $DIR/replace_consts.rs:42:17
129    |
130 42 |     { let foo = std::i8::MAX; };
131    |                 ^^^^^^^^^^^^ help: try this: `i8::max_value()`
132 error: using `MAX`
133   --> $DIR/replace_consts.rs:43:17
134    |
135 43 |     { let foo = std::i16::MAX; };
136    |                 ^^^^^^^^^^^^^ help: try this: `i16::max_value()`
137 error: using `MAX`
138   --> $DIR/replace_consts.rs:44:17
139    |
140 44 |     { let foo = std::i32::MAX; };
141    |                 ^^^^^^^^^^^^^ help: try this: `i32::max_value()`
142 error: using `MAX`
143   --> $DIR/replace_consts.rs:45:17
144    |
145 45 |     { let foo = std::i64::MAX; };
146    |                 ^^^^^^^^^^^^^ help: try this: `i64::max_value()`
147 error: using `MAX`
148   --> $DIR/replace_consts.rs:46:17
149    |
150 46 |     { let foo = std::i128::MAX; };
151    |                 ^^^^^^^^^^^^^^ help: try this: `i128::max_value()`
152 error: using `MAX`
153   --> $DIR/replace_consts.rs:47:17
154    |
155 47 |     { let foo = std::usize::MAX; };
156    |                 ^^^^^^^^^^^^^^^ help: try this: `usize::max_value()`
157 error: using `MAX`
158   --> $DIR/replace_consts.rs:48:17
159    |
160 48 |     { let foo = std::u8::MAX; };
161    |                 ^^^^^^^^^^^^ help: try this: `u8::max_value()`
162 error: using `MAX`
163   --> $DIR/replace_consts.rs:49:17
164    |
165 49 |     { let foo = std::u16::MAX; };
166    |                 ^^^^^^^^^^^^^ help: try this: `u16::max_value()`
167 error: using `MAX`
168   --> $DIR/replace_consts.rs:50:17
169    |
170 50 |     { let foo = std::u32::MAX; };
171    |                 ^^^^^^^^^^^^^ help: try this: `u32::max_value()`
172 error: using `MAX`
173   --> $DIR/replace_consts.rs:51:17
174    |
175 51 |     { let foo = std::u64::MAX; };
176    |                 ^^^^^^^^^^^^^ help: try this: `u64::max_value()`
177 error: using `MAX`
178   --> $DIR/replace_consts.rs:52:17
179    |
180 52 |     { let foo = std::u128::MAX; };
181    |                 ^^^^^^^^^^^^^^ help: try this: `u128::max_value()`
182 error: aborting due to 35 previous errors