]> git.lizzy.rs Git - rust.git/blob - tests/ui/overflow_check_conditional.stderr
Merge branch 'master' into rustfmt_tests
[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:17:8
3    |
4 17 |     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:18:8
11    |
12 18 |     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:19:8
17    |
18 19 |     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:8
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:21:8
29    |
30 21 |     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:22:8
35    |
36 22 |     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:23:8
41    |
42 23 |     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:24:8
47    |
48 24 |     if a < a - b {}
49    |        ^^^^^^^^^
50
51 error: aborting due to 8 previous errors
52