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