fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
2.2 KiB107 linesraw
1error: floating-point arithmetic detected
2  --> $DIR/float_arithmetic.rs:15:5
3   |
4LL |     f * 2.0;
5   |     ^^^^^^^
6   |
7   = note: `-D clippy::float-arithmetic` implied by `-D warnings`
8   = help: to override `-D warnings` add `#[allow(clippy::float_arithmetic)]`
9
10error: floating-point arithmetic detected
11  --> $DIR/float_arithmetic.rs:19:5
12   |
13LL |     1.0 + f;
14   |     ^^^^^^^
15
16error: floating-point arithmetic detected
17  --> $DIR/float_arithmetic.rs:21:5
18   |
19LL |     f * 2.0;
20   |     ^^^^^^^
21
22error: floating-point arithmetic detected
23  --> $DIR/float_arithmetic.rs:23:5
24   |
25LL |     f / 2.0;
26   |     ^^^^^^^
27
28error: floating-point arithmetic detected
29  --> $DIR/float_arithmetic.rs:25:5
30   |
31LL |     f - 2.0 * 4.2;
32   |     ^^^^^^^^^^^^^
33
34error: floating-point arithmetic detected
35  --> $DIR/float_arithmetic.rs:27:5
36   |
37LL |     -f;
38   |     ^^
39
40error: floating-point arithmetic detected
41  --> $DIR/float_arithmetic.rs:30:5
42   |
43LL |     f += 1.0;
44   |     ^^^^^^^^
45
46error: floating-point arithmetic detected
47  --> $DIR/float_arithmetic.rs:32:5
48   |
49LL |     f -= 1.0;
50   |     ^^^^^^^^
51
52error: floating-point arithmetic detected
53  --> $DIR/float_arithmetic.rs:34:5
54   |
55LL |     f *= 2.0;
56   |     ^^^^^^^^
57
58error: floating-point arithmetic detected
59  --> $DIR/float_arithmetic.rs:36:5
60   |
61LL |     f /= 2.0;
62   |     ^^^^^^^^
63
64error: floating-point arithmetic detected
65  --> $DIR/float_arithmetic.rs:43:5
66   |
67LL |     3.1_f32 + &1.2_f32;
68   |     ^^^^^^^^^^^^^^^^^^
69
70error: floating-point arithmetic detected
71  --> $DIR/float_arithmetic.rs:45:5
72   |
73LL |     &3.4_f32 + 1.5_f32;
74   |     ^^^^^^^^^^^^^^^^^^
75
76error: floating-point arithmetic detected
77  --> $DIR/float_arithmetic.rs:47:5
78   |
79LL |     &3.5_f32 + &1.3_f32;
80   |     ^^^^^^^^^^^^^^^^^^^
81
82error: floating-point arithmetic detected
83  --> $DIR/float_arithmetic.rs:53:5
84   |
85LL |     a + f
86   |     ^^^^^
87
88error: floating-point arithmetic detected
89  --> $DIR/float_arithmetic.rs:58:5
90   |
91LL |     f1 + f2
92   |     ^^^^^^^
93
94error: floating-point arithmetic detected
95  --> $DIR/float_arithmetic.rs:63:5
96   |
97LL |     f1 + f2
98   |     ^^^^^^^
99
100error: floating-point arithmetic detected
101  --> $DIR/float_arithmetic.rs:68:5
102   |
103LL |     (&f1 + &f2)
104   |     ^^^^^^^^^^^
105
106error: aborting due to 17 previous errors
107