summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/issue-109529.stderr
blob: 9e857d1b0ab5dd3564b3e2348d7c2ae7e1ab8a61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
error: range endpoint is out of range for `u8`
  --> $DIR/issue-109529.rs:4:14
   |
LL |     for _ in 0..256 as u8 {}
   |              ------^^^^^^
   |              |
   |              help: use an inclusive range instead: `0..=255`
   |
   = note: `#[deny(overflowing_literals)]` on by default

error: range endpoint is out of range for `u8`
  --> $DIR/issue-109529.rs:5:14
   |
LL |     for _ in 0..(256 as u8) {}
   |              ^^^^^^^^^^^^^^
   |
help: use an inclusive range instead
   |
LL |     for _ in 0..=(255 as u8) {}
   |                 + ~~~

error: aborting due to 2 previous errors