]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-type-limits2.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / lint / lint-type-limits2.stderr
1 error: comparison is useless due to type limits
2   --> $DIR/lint-type-limits2.rs:22:5
3    |
4 LL |     128 > bar() //~ ERROR comparison is useless due to type limits
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:22:5
11    |
12 LL |     128 > bar() //~ ERROR comparison is useless due to type limits
13    |     ^^^
14    |
15    = note: #[warn(overflowing_literals)] on by default
16
17 error: aborting due to previous error
18