]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/lint-type-limits3.stderr
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
[rust.git] / tests / 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 literal `200` does not fit into the type `i8` whose range is `-128..=127`
16    = help: consider using the type `u8` instead
17 note: the lint level is defined here
18   --> $DIR/lint-type-limits3.rs:2:9
19    |
20 LL | #![warn(overflowing_literals)]
21    |         ^^^^^^^^^^^^^^^^^^^^
22
23 error: aborting due to previous error; 1 warning emitted
24