]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/overflow_check_conditional.stderr
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / clippy / tests / ui / overflow_check_conditional.stderr
CommitLineData
f20569fa
XL
1error: you are trying to use classic C overflow conditions that will fail in Rust
2 --> $DIR/overflow_check_conditional.rs:8:8
3 |
4LL | if a + b < a {}
5 | ^^^^^^^^^
6 |
7 = note: `-D clippy::overflow-check-conditional` implied by `-D warnings`
8
9error: you are trying to use classic C overflow conditions that will fail in Rust
10 --> $DIR/overflow_check_conditional.rs:9:8
11 |
12LL | if a > a + b {}
13 | ^^^^^^^^^
14
15error: you are trying to use classic C overflow conditions that will fail in Rust
16 --> $DIR/overflow_check_conditional.rs:10:8
17 |
18LL | if a + b < b {}
19 | ^^^^^^^^^
20
21error: you are trying to use classic C overflow conditions that will fail in Rust
22 --> $DIR/overflow_check_conditional.rs:11:8
23 |
24LL | if b > a + b {}
25 | ^^^^^^^^^
26
27error: you are trying to use classic C underflow conditions that will fail in Rust
28 --> $DIR/overflow_check_conditional.rs:12:8
29 |
30LL | if a - b > b {}
31 | ^^^^^^^^^
32
33error: you are trying to use classic C underflow conditions that will fail in Rust
34 --> $DIR/overflow_check_conditional.rs:13:8
35 |
36LL | if b < a - b {}
37 | ^^^^^^^^^
38
39error: you are trying to use classic C underflow conditions that will fail in Rust
40 --> $DIR/overflow_check_conditional.rs:14:8
41 |
42LL | if a - b > a {}
43 | ^^^^^^^^^
44
45error: you are trying to use classic C underflow conditions that will fail in Rust
46 --> $DIR/overflow_check_conditional.rs:15:8
47 |
48LL | if a < a - b {}
49 | ^^^^^^^^^
50
51error: aborting due to 8 previous errors
52