]> git.lizzy.rs Git - rust.git/blob - tests/ui/integer_arithmetic.stderr
Auto merge of #5319 - 1tgr:master, r=flip1995
[rust.git] / tests / ui / integer_arithmetic.stderr
1 error: integer arithmetic detected
2   --> $DIR/integer_arithmetic.rs:15: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:16:5
11    |
12 LL |     i * 2;
13    |     ^^^^^
14
15 error: integer arithmetic detected
16   --> $DIR/integer_arithmetic.rs:17: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:19:5
24    |
25 LL |     i - 2 + 2 - i;
26    |     ^^^^^^^^^^^^^
27
28 error: integer arithmetic detected
29   --> $DIR/integer_arithmetic.rs:20:5
30    |
31 LL |     -i;
32    |     ^^
33
34 error: integer arithmetic detected
35   --> $DIR/integer_arithmetic.rs:32:5
36    |
37 LL |     i += 1;
38    |     ^^^^^^
39
40 error: integer arithmetic detected
41   --> $DIR/integer_arithmetic.rs:33:5
42    |
43 LL |     i -= 1;
44    |     ^^^^^^
45
46 error: integer arithmetic detected
47   --> $DIR/integer_arithmetic.rs:34:5
48    |
49 LL |     i *= 2;
50    |     ^^^^^^
51
52 error: integer arithmetic detected
53   --> $DIR/integer_arithmetic.rs:35:5
54    |
55 LL |     i /= 2;
56    |     ^^^^^^
57
58 error: integer arithmetic detected
59   --> $DIR/integer_arithmetic.rs:36:5
60    |
61 LL |     i %= 2;
62    |     ^^^^^^
63
64 error: integer arithmetic detected
65   --> $DIR/integer_arithmetic.rs:82:5
66    |
67 LL |     3 + &1;
68    |     ^^^^^^
69
70 error: integer arithmetic detected
71   --> $DIR/integer_arithmetic.rs:83:5
72    |
73 LL |     &3 + 1;
74    |     ^^^^^^
75
76 error: integer arithmetic detected
77   --> $DIR/integer_arithmetic.rs:84:5
78    |
79 LL |     &3 + &1;
80    |     ^^^^^^^
81
82 error: integer arithmetic detected
83   --> $DIR/integer_arithmetic.rs:89:5
84    |
85 LL |     a + x
86    |     ^^^^^
87
88 error: integer arithmetic detected
89   --> $DIR/integer_arithmetic.rs:93:5
90    |
91 LL |     x + y
92    |     ^^^^^
93
94 error: integer arithmetic detected
95   --> $DIR/integer_arithmetic.rs:97:5
96    |
97 LL |     x + y
98    |     ^^^^^
99
100 error: integer arithmetic detected
101   --> $DIR/integer_arithmetic.rs:101:5
102    |
103 LL |     (&x + &y)
104    |     ^^^^^^^^^
105
106 error: aborting due to 17 previous errors
107