]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | error: you are trying to use classic C overflow conditions that will fail in Rust |
2 | --> $DIR/overflow_check_conditional.rs:8:8 | |
3 | | | |
4 | LL | 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:9:8 | |
11 | | | |
12 | LL | 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:10:8 | |
17 | | | |
18 | LL | 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:11:8 | |
23 | | | |
24 | LL | 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:12:8 | |
29 | | | |
30 | LL | 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:13:8 | |
35 | | | |
36 | LL | 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:14:8 | |
41 | | | |
42 | LL | 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:15:8 | |
47 | | | |
48 | LL | if a < a - b {} | |
49 | | ^^^^^^^^^ | |
50 | ||
51 | error: aborting due to 8 previous errors | |
52 |