]> git.lizzy.rs Git - rust.git/blob - tests/ui/arithmetic.stderr
Auto merge of #4478 - tsurai:master, 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: floating-point arithmetic detected
35   --> $DIR/arithmetic.rs:32:5
36    |
37 LL |     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:34:5
44    |
45 LL |     1.0 + f;
46    |     ^^^^^^^
47
48 error: floating-point arithmetic detected
49   --> $DIR/arithmetic.rs:35:5
50    |
51 LL |     f * 2.0;
52    |     ^^^^^^^
53
54 error: floating-point arithmetic detected
55   --> $DIR/arithmetic.rs:36:5
56    |
57 LL |     f / 2.0;
58    |     ^^^^^^^
59
60 error: floating-point arithmetic detected
61   --> $DIR/arithmetic.rs:37:5
62    |
63 LL |     f - 2.0 * 4.2;
64    |     ^^^^^^^^^^^^^
65
66 error: floating-point arithmetic detected
67   --> $DIR/arithmetic.rs:38:5
68    |
69 LL |     -f;
70    |     ^^
71
72 error: aborting due to 11 previous errors
73