]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/lint-type-limits2.stderr
Rollup merge of #106797 - FawazTirmizi:dev/issues/104284, r=bjorn3
[rust.git] / tests / ui / lint / lint-type-limits2.stderr
1 error: comparison is useless due to type limits
2   --> $DIR/lint-type-limits2.rs:13:5
3    |
4 LL |     128 > bar()
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-limits2.rs:13:5
11    |
12 LL |     128 > bar()
13    |     ^^^
14    |
15    = note: the literal `128` 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-limits2.rs:2:9
19    |
20 LL | #![warn(overflowing_literals)]
21    |         ^^^^^^^^^^^^^^^^^^^^
22
23 error: aborting due to previous error; 1 warning emitted
24