]> git.lizzy.rs Git - rust.git/blob - tests/ui/integer_arithmetic.stderr
iterate List by value
[rust.git] / tests / ui / integer_arithmetic.stderr
1 error: integer arithmetic detected
2   --> $DIR/integer_arithmetic.rs:14: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/integer_arithmetic.rs:15:5
11    |
12 LL |     i * 2;
13    |     ^^^^^
14
15 error: integer arithmetic detected
16   --> $DIR/integer_arithmetic.rs:16: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/integer_arithmetic.rs:18:5
24    |
25 LL |     i - 2 + 2 - i;
26    |     ^^^^^^^^^^^^^
27
28 error: integer arithmetic detected
29   --> $DIR/integer_arithmetic.rs:19:5
30    |
31 LL |     -i;
32    |     ^^
33
34 error: integer arithmetic detected
35   --> $DIR/integer_arithmetic.rs:20:5
36    |
37 LL |     i >> 1;
38    |     ^^^^^^
39
40 error: integer arithmetic detected
41   --> $DIR/integer_arithmetic.rs:21:5
42    |
43 LL |     i << 1;
44    |     ^^^^^^
45
46 error: integer arithmetic detected
47   --> $DIR/integer_arithmetic.rs:31:5
48    |
49 LL |     i += 1;
50    |     ^^^^^^
51
52 error: integer arithmetic detected
53   --> $DIR/integer_arithmetic.rs:32:5
54    |
55 LL |     i -= 1;
56    |     ^^^^^^
57
58 error: integer arithmetic detected
59   --> $DIR/integer_arithmetic.rs:33:5
60    |
61 LL |     i *= 2;
62    |     ^^^^^^
63
64 error: integer arithmetic detected
65   --> $DIR/integer_arithmetic.rs:34:5
66    |
67 LL |     i /= 2;
68    |     ^^^^^^
69
70 error: integer arithmetic detected
71   --> $DIR/integer_arithmetic.rs:35:5
72    |
73 LL |     i %= 2;
74    |     ^^^^^^
75
76 error: integer arithmetic detected
77   --> $DIR/integer_arithmetic.rs:36:5
78    |
79 LL |     i <<= 3;
80    |     ^^^^^^^
81
82 error: integer arithmetic detected
83   --> $DIR/integer_arithmetic.rs:37:5
84    |
85 LL |     i >>= 2;
86    |     ^^^^^^^
87
88 error: integer arithmetic detected
89   --> $DIR/integer_arithmetic.rs:79:5
90    |
91 LL |     3 + &1;
92    |     ^^^^^^
93
94 error: integer arithmetic detected
95   --> $DIR/integer_arithmetic.rs:80:5
96    |
97 LL |     &3 + 1;
98    |     ^^^^^^
99
100 error: integer arithmetic detected
101   --> $DIR/integer_arithmetic.rs:81:5
102    |
103 LL |     &3 + &1;
104    |     ^^^^^^^
105
106 error: integer arithmetic detected
107   --> $DIR/integer_arithmetic.rs:86:5
108    |
109 LL |     a + x
110    |     ^^^^^
111
112 error: integer arithmetic detected
113   --> $DIR/integer_arithmetic.rs:90:5
114    |
115 LL |     x + y
116    |     ^^^^^
117
118 error: integer arithmetic detected
119   --> $DIR/integer_arithmetic.rs:94:5
120    |
121 LL |     x + y
122    |     ^^^^^
123
124 error: integer arithmetic detected
125   --> $DIR/integer_arithmetic.rs:98:5
126    |
127 LL |     (&x + &y)
128    |     ^^^^^^^^^
129
130 error: aborting due to 21 previous errors
131