]> git.lizzy.rs Git - rust.git/blob - tests/ui/arithmetic.stderr
Merge branch 'master' into rustfmt_tests
[rust.git] / tests / ui / arithmetic.stderr
1 error: integer arithmetic detected
2   --> $DIR/arithmetic.rs:22:5
3    |
4 22 |     1 + i;
5    |     ^^^^^
6    |
7    = note: `-D clippy::integer-arithmetic` implied by `-D warnings`
8
9 error: integer arithmetic detected
10   --> $DIR/arithmetic.rs:23:5
11    |
12 23 |     i * 2;
13    |     ^^^^^
14
15 error: integer arithmetic detected
16   --> $DIR/arithmetic.rs:24:5
17    |
18 24 | /     1 %
19 25 | |     i / 2; // no error, this is part of the expression in the preceding line
20    | |_________^
21
22 error: integer arithmetic detected
23   --> $DIR/arithmetic.rs:26:5
24    |
25 26 |     i - 2 + 2 - i;
26    |     ^^^^^^^^^^^^^
27
28 error: integer arithmetic detected
29   --> $DIR/arithmetic.rs:27:5
30    |
31 27 |     -i;
32    |     ^^
33
34 error: floating-point arithmetic detected
35   --> $DIR/arithmetic.rs:37:5
36    |
37 37 |     f * 2.0;
38    |     ^^^^^^^
39    |
40    = note: `-D clippy::float-arithmetic` implied by `-D warnings`
41
42 error: floating-point arithmetic detected
43   --> $DIR/arithmetic.rs:39:5
44    |
45 39 |     1.0 + f;
46    |     ^^^^^^^
47
48 error: floating-point arithmetic detected
49   --> $DIR/arithmetic.rs:40:5
50    |
51 40 |     f * 2.0;
52    |     ^^^^^^^
53
54 error: floating-point arithmetic detected
55   --> $DIR/arithmetic.rs:41:5
56    |
57 41 |     f / 2.0;
58    |     ^^^^^^^
59
60 error: floating-point arithmetic detected
61   --> $DIR/arithmetic.rs:42:5
62    |
63 42 |     f - 2.0 * 4.2;
64    |     ^^^^^^^^^^^^^
65
66 error: floating-point arithmetic detected
67   --> $DIR/arithmetic.rs:43:5
68    |
69 43 |     -f;
70    |     ^^
71
72 error: aborting due to 11 previous errors
73