]> git.lizzy.rs Git - rust.git/blob - clippy_tests/examples/arithmetic.stderr
Fix the test suite after cargo update
[rust.git] / clippy_tests / examples / arithmetic.stderr
1 error: integer arithmetic detected
2  --> arithmetic.rs:8:5
3   |
4 8 |     1 + i;
5   |     ^^^^^
6   |
7   = note: `-D integer-arithmetic` implied by `-D warnings`
8
9 error: integer arithmetic detected
10  --> arithmetic.rs:9:5
11   |
12 9 |     i * 2;
13   |     ^^^^^
14   |
15   = note: `-D integer-arithmetic` implied by `-D warnings`
16
17 error: integer arithmetic detected
18   --> arithmetic.rs:10:5
19    |
20 10 | /     1 %
21 11 | |     i / 2; // no error, this is part of the expression in the preceding line
22    | |_________^
23    |
24    = note: `-D integer-arithmetic` implied by `-D warnings`
25
26 error: integer arithmetic detected
27   --> arithmetic.rs:12:5
28    |
29 12 |     i - 2 + 2 - i;
30    |     ^^^^^^^^^^^^^
31    |
32    = note: `-D integer-arithmetic` implied by `-D warnings`
33
34 error: integer arithmetic detected
35   --> arithmetic.rs:13:5
36    |
37 13 |     -i;
38    |     ^^
39    |
40    = note: `-D integer-arithmetic` implied by `-D warnings`
41
42 error: floating-point arithmetic detected
43   --> arithmetic.rs:23:5
44    |
45 23 |     f * 2.0;
46    |     ^^^^^^^
47    |
48    = note: `-D float-arithmetic` implied by `-D warnings`
49
50 error: floating-point arithmetic detected
51   --> arithmetic.rs:25:5
52    |
53 25 |     1.0 + f;
54    |     ^^^^^^^
55    |
56    = note: `-D float-arithmetic` implied by `-D warnings`
57
58 error: floating-point arithmetic detected
59   --> arithmetic.rs:26:5
60    |
61 26 |     f * 2.0;
62    |     ^^^^^^^
63    |
64    = note: `-D float-arithmetic` implied by `-D warnings`
65
66 error: floating-point arithmetic detected
67   --> arithmetic.rs:27:5
68    |
69 27 |     f / 2.0;
70    |     ^^^^^^^
71    |
72    = note: `-D float-arithmetic` implied by `-D warnings`
73
74 error: floating-point arithmetic detected
75   --> arithmetic.rs:28:5
76    |
77 28 |     f - 2.0 * 4.2;
78    |     ^^^^^^^^^^^^^
79    |
80    = note: `-D float-arithmetic` implied by `-D warnings`
81
82 error: floating-point arithmetic detected
83   --> arithmetic.rs:29:5
84    |
85 29 |     -f;
86    |     ^^
87    |
88    = note: `-D float-arithmetic` implied by `-D warnings`
89
90 error: aborting due to previous error(s)
91
92
93 To learn more, run the command again with --verbose.