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