]> git.lizzy.rs Git - rust.git/blob - tests/ui/replace_consts.stderr
Auto merge of #4478 - tsurai:master, r=flip1995
[rust.git] / tests / ui / replace_consts.stderr
1 error: using `MIN`
2   --> $DIR/replace_consts.rs:11:17
3    |
4 LL |     { let foo = std::isize::MIN; };
5    |                 ^^^^^^^^^^^^^^^ help: try this: `isize::min_value()`
6    |
7 note: lint level defined here
8   --> $DIR/replace_consts.rs:4:9
9    |
10 LL | #![deny(clippy::replace_consts)]
11    |         ^^^^^^^^^^^^^^^^^^^^^^
12
13 error: using `MIN`
14   --> $DIR/replace_consts.rs:12:17
15    |
16 LL |     { let foo = std::i8::MIN; };
17    |                 ^^^^^^^^^^^^ help: try this: `i8::min_value()`
18
19 error: using `MIN`
20   --> $DIR/replace_consts.rs:13:17
21    |
22 LL |     { let foo = std::i16::MIN; };
23    |                 ^^^^^^^^^^^^^ help: try this: `i16::min_value()`
24
25 error: using `MIN`
26   --> $DIR/replace_consts.rs:14:17
27    |
28 LL |     { let foo = std::i32::MIN; };
29    |                 ^^^^^^^^^^^^^ help: try this: `i32::min_value()`
30
31 error: using `MIN`
32   --> $DIR/replace_consts.rs:15:17
33    |
34 LL |     { let foo = std::i64::MIN; };
35    |                 ^^^^^^^^^^^^^ help: try this: `i64::min_value()`
36
37 error: using `MIN`
38   --> $DIR/replace_consts.rs:16:17
39    |
40 LL |     { let foo = std::i128::MIN; };
41    |                 ^^^^^^^^^^^^^^ help: try this: `i128::min_value()`
42
43 error: using `MIN`
44   --> $DIR/replace_consts.rs:17:17
45    |
46 LL |     { let foo = std::usize::MIN; };
47    |                 ^^^^^^^^^^^^^^^ help: try this: `usize::min_value()`
48
49 error: using `MIN`
50   --> $DIR/replace_consts.rs:18:17
51    |
52 LL |     { let foo = std::u8::MIN; };
53    |                 ^^^^^^^^^^^^ help: try this: `u8::min_value()`
54
55 error: using `MIN`
56   --> $DIR/replace_consts.rs:19:17
57    |
58 LL |     { let foo = std::u16::MIN; };
59    |                 ^^^^^^^^^^^^^ help: try this: `u16::min_value()`
60
61 error: using `MIN`
62   --> $DIR/replace_consts.rs:20:17
63    |
64 LL |     { let foo = std::u32::MIN; };
65    |                 ^^^^^^^^^^^^^ help: try this: `u32::min_value()`
66
67 error: using `MIN`
68   --> $DIR/replace_consts.rs:21:17
69    |
70 LL |     { let foo = std::u64::MIN; };
71    |                 ^^^^^^^^^^^^^ help: try this: `u64::min_value()`
72
73 error: using `MIN`
74   --> $DIR/replace_consts.rs:22:17
75    |
76 LL |     { let foo = std::u128::MIN; };
77    |                 ^^^^^^^^^^^^^^ help: try this: `u128::min_value()`
78
79 error: using `MAX`
80   --> $DIR/replace_consts.rs:24:17
81    |
82 LL |     { let foo = std::isize::MAX; };
83    |                 ^^^^^^^^^^^^^^^ help: try this: `isize::max_value()`
84
85 error: using `MAX`
86   --> $DIR/replace_consts.rs:25:17
87    |
88 LL |     { let foo = std::i8::MAX; };
89    |                 ^^^^^^^^^^^^ help: try this: `i8::max_value()`
90
91 error: using `MAX`
92   --> $DIR/replace_consts.rs:26:17
93    |
94 LL |     { let foo = std::i16::MAX; };
95    |                 ^^^^^^^^^^^^^ help: try this: `i16::max_value()`
96
97 error: using `MAX`
98   --> $DIR/replace_consts.rs:27:17
99    |
100 LL |     { let foo = std::i32::MAX; };
101    |                 ^^^^^^^^^^^^^ help: try this: `i32::max_value()`
102
103 error: using `MAX`
104   --> $DIR/replace_consts.rs:28:17
105    |
106 LL |     { let foo = std::i64::MAX; };
107    |                 ^^^^^^^^^^^^^ help: try this: `i64::max_value()`
108
109 error: using `MAX`
110   --> $DIR/replace_consts.rs:29:17
111    |
112 LL |     { let foo = std::i128::MAX; };
113    |                 ^^^^^^^^^^^^^^ help: try this: `i128::max_value()`
114
115 error: using `MAX`
116   --> $DIR/replace_consts.rs:30:17
117    |
118 LL |     { let foo = std::usize::MAX; };
119    |                 ^^^^^^^^^^^^^^^ help: try this: `usize::max_value()`
120
121 error: using `MAX`
122   --> $DIR/replace_consts.rs:31:17
123    |
124 LL |     { let foo = std::u8::MAX; };
125    |                 ^^^^^^^^^^^^ help: try this: `u8::max_value()`
126
127 error: using `MAX`
128   --> $DIR/replace_consts.rs:32:17
129    |
130 LL |     { let foo = std::u16::MAX; };
131    |                 ^^^^^^^^^^^^^ help: try this: `u16::max_value()`
132
133 error: using `MAX`
134   --> $DIR/replace_consts.rs:33:17
135    |
136 LL |     { let foo = std::u32::MAX; };
137    |                 ^^^^^^^^^^^^^ help: try this: `u32::max_value()`
138
139 error: using `MAX`
140   --> $DIR/replace_consts.rs:34:17
141    |
142 LL |     { let foo = std::u64::MAX; };
143    |                 ^^^^^^^^^^^^^ help: try this: `u64::max_value()`
144
145 error: using `MAX`
146   --> $DIR/replace_consts.rs:35:17
147    |
148 LL |     { let foo = std::u128::MAX; };
149    |                 ^^^^^^^^^^^^^^ help: try this: `u128::max_value()`
150
151 error: aborting due to 24 previous errors
152