]> git.lizzy.rs Git - rust.git/blob - tests/ui/arithmetic.stderr
Auto merge of #4809 - iankronquist:patch-1, r=flip1995
[rust.git] / tests / ui / arithmetic.stderr
1 error: integer arithmetic detected
2   --> $DIR/arithmetic.rs:13:5
3    |
4 LL |     1 + i;
5    |     ^^^^^
6    |
7    = note: `-D clippy::integer-arithmetic` implied by `-D warnings`
8
9 error: integer arithmetic detected
10   --> $DIR/arithmetic.rs:14:5
11    |
12 LL |     i * 2;
13    |     ^^^^^
14
15 error: integer arithmetic detected
16   --> $DIR/arithmetic.rs:15:5
17    |
18 LL | /     1 %
19 LL | |     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:17:5
24    |
25 LL |     i - 2 + 2 - i;
26    |     ^^^^^^^^^^^^^
27
28 error: integer arithmetic detected
29   --> $DIR/arithmetic.rs:18:5
30    |
31 LL |     -i;
32    |     ^^
33
34 error: integer arithmetic detected
35   --> $DIR/arithmetic.rs:30:5
36    |
37 LL |     i += 1;
38    |     ^^^^^^
39
40 error: integer arithmetic detected
41   --> $DIR/arithmetic.rs:31:5
42    |
43 LL |     i -= 1;
44    |     ^^^^^^
45
46 error: integer arithmetic detected
47   --> $DIR/arithmetic.rs:32:5
48    |
49 LL |     i *= 2;
50    |     ^^^^^^
51
52 error: integer arithmetic detected
53   --> $DIR/arithmetic.rs:33:5
54    |
55 LL |     i /= 2;
56    |     ^^^^^^
57
58 error: integer arithmetic detected
59   --> $DIR/arithmetic.rs:34:5
60    |
61 LL |     i %= 2;
62    |     ^^^^^^
63
64 error: floating-point arithmetic detected
65   --> $DIR/arithmetic.rs:45:5
66    |
67 LL |     f * 2.0;
68    |     ^^^^^^^
69    |
70    = note: `-D clippy::float-arithmetic` implied by `-D warnings`
71
72 error: floating-point arithmetic detected
73   --> $DIR/arithmetic.rs:47:5
74    |
75 LL |     1.0 + f;
76    |     ^^^^^^^
77
78 error: floating-point arithmetic detected
79   --> $DIR/arithmetic.rs:48:5
80    |
81 LL |     f * 2.0;
82    |     ^^^^^^^
83
84 error: floating-point arithmetic detected
85   --> $DIR/arithmetic.rs:49:5
86    |
87 LL |     f / 2.0;
88    |     ^^^^^^^
89
90 error: floating-point arithmetic detected
91   --> $DIR/arithmetic.rs:50:5
92    |
93 LL |     f - 2.0 * 4.2;
94    |     ^^^^^^^^^^^^^
95
96 error: floating-point arithmetic detected
97   --> $DIR/arithmetic.rs:51:5
98    |
99 LL |     -f;
100    |     ^^
101
102 error: floating-point arithmetic detected
103   --> $DIR/arithmetic.rs:53:5
104    |
105 LL |     f += 1.0;
106    |     ^^^^^^^^
107
108 error: floating-point arithmetic detected
109   --> $DIR/arithmetic.rs:54:5
110    |
111 LL |     f -= 1.0;
112    |     ^^^^^^^^
113
114 error: floating-point arithmetic detected
115   --> $DIR/arithmetic.rs:55:5
116    |
117 LL |     f *= 2.0;
118    |     ^^^^^^^^
119
120 error: floating-point arithmetic detected
121   --> $DIR/arithmetic.rs:56:5
122    |
123 LL |     f /= 2.0;
124    |     ^^^^^^^^
125
126 error: aborting due to 20 previous errors
127