]> git.lizzy.rs Git - rust.git/blob - tests/ui/overflow_check_conditional.stderr
Merge pull request #1520 from Manishearth/rustup
[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:11:5
3    |
4 11 | \tif a + b < a {
5    | \t   ^^^^^^^^^
6    |
7 note: lint level defined here
8   --> $DIR/overflow_check_conditional.rs:5:9
9    |
10 5  | #![deny(overflow_check_conditional)]
11    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13 error: You are trying to use classic C overflow conditions that will fail in Rust.
14   --> $DIR/overflow_check_conditional.rs:14:5
15    |
16 14 | \tif a > a + b {
17    | \t   ^^^^^^^^^
18
19 error: You are trying to use classic C overflow conditions that will fail in Rust.
20   --> $DIR/overflow_check_conditional.rs:17:5
21    |
22 17 | \tif a + b < b {
23    | \t   ^^^^^^^^^
24
25 error: You are trying to use classic C overflow conditions that will fail in Rust.
26   --> $DIR/overflow_check_conditional.rs:20:5
27    |
28 20 | \tif b > a + b {
29    | \t   ^^^^^^^^^
30
31 error: You are trying to use classic C underflow conditions that will fail in Rust.
32   --> $DIR/overflow_check_conditional.rs:23:5
33    |
34 23 | \tif a - b > b {
35    | \t   ^^^^^^^^^
36
37 error: You are trying to use classic C underflow conditions that will fail in Rust.
38   --> $DIR/overflow_check_conditional.rs:26:5
39    |
40 26 | \tif b < a - b {
41    | \t   ^^^^^^^^^
42
43 error: You are trying to use classic C underflow conditions that will fail in Rust.
44   --> $DIR/overflow_check_conditional.rs:29:5
45    |
46 29 | \tif a - b > a {
47    | \t   ^^^^^^^^^
48
49 error: You are trying to use classic C underflow conditions that will fail in Rust.
50   --> $DIR/overflow_check_conditional.rs:32:5
51    |
52 32 | \tif a < a - b {
53    | \t   ^^^^^^^^^
54
55 error: aborting due to 8 previous errors
56