]> git.proxmox.com Git - rustc.git/blame - 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
CommitLineData
b7449926 1error: comparison is useless due to type limits
9fa01778 2 --> $DIR/lint-type-limits3.rs:9:11
b7449926 3 |
532ac7d7 4LL | while 200 != i {
b7449926
XL
5 | ^^^^^^^^
6 |
7 = note: requested on the command line with `-D unused-comparisons`
8
48663c56 9warning: literal out of range for `i8`
9fa01778 10 --> $DIR/lint-type-limits3.rs:9:11
b7449926 11 |
532ac7d7 12LL | while 200 != i {
b7449926
XL
13 | ^^^
14 |
74b04a01 15note: the lint level is defined here
9fa01778
XL
16 --> $DIR/lint-type-limits3.rs:2:9
17 |
18LL | #![warn(overflowing_literals)]
19 | ^^^^^^^^^^^^^^^^^^^^
ba9703b0 20 = note: the literal `200` does not fit into the type `i8` whose range is `-128..=127`
6a06907d 21 = help: consider using the type `u8` instead
b7449926 22
ba9703b0 23error: aborting due to previous error; 1 warning emitted
b7449926 24