2023-03-24 01:24:25 -05:00
|
|
|
error: range endpoint is out of range for `u8`
|
2023-03-28 20:56:28 -05:00
|
|
|
--> $DIR/issue-109529.rs:4:14
|
2023-03-24 01:24:25 -05:00
|
|
|
|
|
2023-03-24 12:00:49 -05:00
|
|
|
LL | for _ in 0..256 as u8 {}
|
|
|
|
| ------^^^^^^
|
|
|
|
| |
|
|
|
|
| help: use an inclusive range instead: `0..=255`
|
2023-03-24 01:24:25 -05:00
|
|
|
|
|
|
|
|
= note: `#[deny(overflowing_literals)]` on by default
|
2023-03-24 12:00:49 -05:00
|
|
|
|
|
|
|
error: range endpoint is out of range for `u8`
|
2023-03-28 20:56:28 -05:00
|
|
|
--> $DIR/issue-109529.rs:5:14
|
2023-03-24 12:00:49 -05:00
|
|
|
|
|
|
|
|
LL | for _ in 0..(256 as u8) {}
|
|
|
|
| ^^^^^^^^^^^^^^
|
2023-03-24 07:09:02 -05:00
|
|
|
|
|
|
|
|
help: use an inclusive range instead
|
|
|
|
|
|
2023-03-24 12:00:49 -05:00
|
|
|
LL | for _ in 0..=(255 as u8) {}
|
|
|
|
| + ~~~
|
2023-03-24 01:24:25 -05:00
|
|
|
|
2023-03-24 12:00:49 -05:00
|
|
|
error: aborting due to 2 previous errors
|
2023-03-24 01:24:25 -05:00
|
|
|
|