]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/arithmetic.stderr
New upstream version 1.23.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / arithmetic.stderr
CommitLineData
ea8adc8c
XL
1error: integer arithmetic detected
2 --> $DIR/arithmetic.rs:8:5
3 |
48 | 1 + i;
5 | ^^^^^
6 |
7 = note: `-D integer-arithmetic` implied by `-D warnings`
8
9error: integer arithmetic detected
10 --> $DIR/arithmetic.rs:9:5
11 |
129 | i * 2;
13 | ^^^^^
14
15error: integer arithmetic detected
16 --> $DIR/arithmetic.rs:10:5
17 |
1810 | / 1 %
1911 | | i / 2; // no error, this is part of the expression in the preceding line
20 | |_________^
21
22error: integer arithmetic detected
23 --> $DIR/arithmetic.rs:12:5
24 |
2512 | i - 2 + 2 - i;
26 | ^^^^^^^^^^^^^
27
28error: integer arithmetic detected
29 --> $DIR/arithmetic.rs:13:5
30 |
3113 | -i;
32 | ^^
33
34error: floating-point arithmetic detected
35 --> $DIR/arithmetic.rs:23:5
36 |
3723 | f * 2.0;
38 | ^^^^^^^
39 |
40 = note: `-D float-arithmetic` implied by `-D warnings`
41
42error: floating-point arithmetic detected
43 --> $DIR/arithmetic.rs:25:5
44 |
4525 | 1.0 + f;
46 | ^^^^^^^
47
48error: floating-point arithmetic detected
49 --> $DIR/arithmetic.rs:26:5
50 |
5126 | f * 2.0;
52 | ^^^^^^^
53
54error: floating-point arithmetic detected
55 --> $DIR/arithmetic.rs:27:5
56 |
5727 | f / 2.0;
58 | ^^^^^^^
59
60error: floating-point arithmetic detected
61 --> $DIR/arithmetic.rs:28:5
62 |
6328 | f - 2.0 * 4.2;
64 | ^^^^^^^^^^^^^
65
66error: floating-point arithmetic detected
67 --> $DIR/arithmetic.rs:29:5
68 |
6929 | -f;
70 | ^^
71