]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/overflow_check_conditional.stderr
New upstream version 1.22.1+dfsg1
[rustc.git] / src / tools / clippy / 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 | \tif a + b < a {
5 | \t ^^^^^^^^^
6 |
7 = note: `-D 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 | \tif a > a + b {
13 | \t ^^^^^^^^^
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 | \tif a + b < b {
19 | \t ^^^^^^^^^
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 | \tif b > a + b {
25 | \t ^^^^^^^^^
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 | \tif a - b > b {
31 | \t ^^^^^^^^^
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 | \tif b < a - b {
37 | \t ^^^^^^^^^
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 | \tif a - b > a {
43 | \t ^^^^^^^^^
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 | \tif a < a - b {
49 | \t ^^^^^^^^^
50
51 error: aborting due to 8 previous errors
52