fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
605 B23 linesraw
1error: range endpoint is out of range for `u8`
2  --> $DIR/issue-109529.rs:4:14
3   |
4LL |     for _ in 0..256 as u8 {}
5   |              ------^^^^^^
6   |              |
7   |              help: use an inclusive range instead: `0..=255`
8   |
9   = note: `#[deny(overflowing_literals)]` on by default
10
11error: range endpoint is out of range for `u8`
12  --> $DIR/issue-109529.rs:5:14
13   |
14LL |     for _ in 0..(256 as u8) {}
15   |              ^^^^^^^^^^^^^^
16   |
17help: use an inclusive range instead
18   |
19LL |     for _ in 0..=(255 as u8) {}
20   |                 + ~~~
21
22error: aborting due to 2 previous errors
23