]> git.lizzy.rs Git - rust.git/blob - tests/ui/arithmetic.stderr
Merge pull request #2984 from flip1995/single_char_pattern
[rust.git] / tests / ui / arithmetic.stderr
1 error: integer arithmetic detected
2  --> $DIR/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  --> $DIR/arithmetic.rs:9:5
11   |
12 9 |     i * 2;
13   |     ^^^^^
14
15 error: integer arithmetic detected
16   --> $DIR/arithmetic.rs:10:5
17    |
18 10 | /     1 %
19 11 | |     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:12:5
24    |
25 12 |     i - 2 + 2 - i;
26    |     ^^^^^^^^^^^^^
27
28 error: integer arithmetic detected
29   --> $DIR/arithmetic.rs:13:5
30    |
31 13 |     -i;
32    |     ^^
33
34 error: floating-point arithmetic detected
35   --> $DIR/arithmetic.rs:23:5
36    |
37 23 |     f * 2.0;
38    |     ^^^^^^^
39    |
40    = note: `-D float-arithmetic` implied by `-D warnings`
41
42 error: floating-point arithmetic detected
43   --> $DIR/arithmetic.rs:25:5
44    |
45 25 |     1.0 + f;
46    |     ^^^^^^^
47
48 error: floating-point arithmetic detected
49   --> $DIR/arithmetic.rs:26:5
50    |
51 26 |     f * 2.0;
52    |     ^^^^^^^
53
54 error: floating-point arithmetic detected
55   --> $DIR/arithmetic.rs:27:5
56    |
57 27 |     f / 2.0;
58    |     ^^^^^^^
59
60 error: floating-point arithmetic detected
61   --> $DIR/arithmetic.rs:28:5
62    |
63 28 |     f - 2.0 * 4.2;
64    |     ^^^^^^^^^^^^^
65
66 error: floating-point arithmetic detected
67   --> $DIR/arithmetic.rs:29:5
68    |
69 29 |     -f;
70    |     ^^
71
72 error: aborting due to 11 previous errors
73