]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lint/lint-type-limits3.stderr
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / ui / lint / lint-type-limits3.stderr
1 error: comparison is useless due to type limits
2 --> $DIR/lint-type-limits3.rs:9:11
3 |
4 LL | while 200 != i {
5 | ^^^^^^^^
6 |
7 = note: requested on the command line with `-D unused-comparisons`
8
9 warning: literal out of range for `i8`
10 --> $DIR/lint-type-limits3.rs:9:11
11 |
12 LL | while 200 != i {
13 | ^^^
14 |
15 note: the lint level is defined here
16 --> $DIR/lint-type-limits3.rs:2:9
17 |
18 LL | #![warn(overflowing_literals)]
19 | ^^^^^^^^^^^^^^^^^^^^
20 = note: the literal `200` does not fit into the type `i8` whose range is `-128..=127`
21 = help: consider using the type `u8` instead
22
23 error: aborting due to previous error; 1 warning emitted
24