]> git.lizzy.rs Git - rust.git/blob - clippy_tests/examples/overflow_check_conditional.stderr
Fix the test suite after cargo update
[rust.git] / clippy_tests / examples / overflow_check_conditional.stderr
1 error: You are trying to use classic C overflow conditions that will fail in Rust.
2   --> overflow_check_conditional.rs:11:5
3    |
4 11 |    if a + b < a {
5    |       ^^^^^^^^^
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   --> overflow_check_conditional.rs:14:5
11    |
12 14 |    if a > a + b {
13    |       ^^^^^^^^^
14    |
15    = note: `-D overflow-check-conditional` implied by `-D warnings`
16
17 error: You are trying to use classic C overflow conditions that will fail in Rust.
18   --> overflow_check_conditional.rs:17:5
19    |
20 17 |    if a + b < b {
21    |       ^^^^^^^^^
22    |
23    = note: `-D overflow-check-conditional` implied by `-D warnings`
24
25 error: You are trying to use classic C overflow conditions that will fail in Rust.
26   --> overflow_check_conditional.rs:20:5
27    |
28 20 |    if b > a + b {
29    |       ^^^^^^^^^
30    |
31    = note: `-D overflow-check-conditional` implied by `-D warnings`
32
33 error: You are trying to use classic C underflow conditions that will fail in Rust.
34   --> overflow_check_conditional.rs:23:5
35    |
36 23 |    if a - b > b {
37    |       ^^^^^^^^^
38    |
39    = note: `-D overflow-check-conditional` implied by `-D warnings`
40
41 error: You are trying to use classic C underflow conditions that will fail in Rust.
42   --> overflow_check_conditional.rs:26:5
43    |
44 26 |    if b < a - b {
45    |       ^^^^^^^^^
46    |
47    = note: `-D overflow-check-conditional` implied by `-D warnings`
48
49 error: You are trying to use classic C underflow conditions that will fail in Rust.
50   --> overflow_check_conditional.rs:29:5
51    |
52 29 |    if a - b > a {
53    |       ^^^^^^^^^
54    |
55    = note: `-D overflow-check-conditional` implied by `-D warnings`
56
57 error: You are trying to use classic C underflow conditions that will fail in Rust.
58   --> overflow_check_conditional.rs:32:5
59    |
60 32 |    if a < a - b {
61    |       ^^^^^^^^^
62    |
63    = note: `-D overflow-check-conditional` implied by `-D warnings`
64
65 error: aborting due to previous error(s)
66
67
68 To learn more, run the command again with --verbose.