]> git.lizzy.rs Git - rust.git/blob - tests/ui/overflow_check_conditional.stderr
Adapt the *.stderr files of the ui-tests to the tool_lints
[rust.git] / tests / ui / overflow_check_conditional.stderr
1 error: You are trying to use classic C overflow conditions that will fail in Rust.
2   --> $DIR/overflow_check_conditional.rs:11:5
3    |
4 11 |     if a + b < a {
5    |        ^^^^^^^^^
6    |
7    = note: `-D clippy::overflow-check-conditional` implied by `-D warnings`
8
9 error: You are trying to use classic C overflow conditions that will fail in Rust.
10   --> $DIR/overflow_check_conditional.rs:14:5
11    |
12 14 |     if a > a + b {
13    |        ^^^^^^^^^
14
15 error: You are trying to use classic C overflow conditions that will fail in Rust.
16   --> $DIR/overflow_check_conditional.rs:17:5
17    |
18 17 |     if a + b < b {
19    |        ^^^^^^^^^
20
21 error: You are trying to use classic C overflow conditions that will fail in Rust.
22   --> $DIR/overflow_check_conditional.rs:20:5
23    |
24 20 |     if b > a + b {
25    |        ^^^^^^^^^
26
27 error: You are trying to use classic C underflow conditions that will fail in Rust.
28   --> $DIR/overflow_check_conditional.rs:23:5
29    |
30 23 |     if a - b > b {
31    |        ^^^^^^^^^
32
33 error: You are trying to use classic C underflow conditions that will fail in Rust.
34   --> $DIR/overflow_check_conditional.rs:26:5
35    |
36 26 |     if b < a - b {
37    |        ^^^^^^^^^
38
39 error: You are trying to use classic C underflow conditions that will fail in Rust.
40   --> $DIR/overflow_check_conditional.rs:29:5
41    |
42 29 |     if a - b > a {
43    |        ^^^^^^^^^
44
45 error: You are trying to use classic C underflow conditions that will fail in Rust.
46   --> $DIR/overflow_check_conditional.rs:32:5
47    |
48 32 |     if a < a - b {
49    |        ^^^^^^^^^
50
51 error: aborting due to 8 previous errors
52