]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | error: equal expressions as operands to `/` |
2 | --> $DIR/zero_div_zero.rs:4:15 | |
3 | | | |
4 | LL | let nan = 0.0 / 0.0; | |
5 | | ^^^^^^^^^ | |
6 | | | |
7 | = note: `#[deny(clippy::eq_op)]` on by default | |
8 | ||
9 | error: constant division of `0.0` with `0.0` will always result in NaN | |
10 | --> $DIR/zero_div_zero.rs:4:15 | |
11 | | | |
12 | LL | let nan = 0.0 / 0.0; | |
13 | | ^^^^^^^^^ | |
14 | | | |
15 | = note: `-D clippy::zero-divided-by-zero` implied by `-D warnings` | |
16 | = help: consider using `f64::NAN` if you would like a constant representing NaN | |
17 | ||
18 | error: equal expressions as operands to `/` | |
19 | --> $DIR/zero_div_zero.rs:5:19 | |
20 | | | |
21 | LL | let f64_nan = 0.0 / 0.0f64; | |
22 | | ^^^^^^^^^^^^ | |
23 | ||
24 | error: constant division of `0.0` with `0.0` will always result in NaN | |
25 | --> $DIR/zero_div_zero.rs:5:19 | |
26 | | | |
27 | LL | let f64_nan = 0.0 / 0.0f64; | |
28 | | ^^^^^^^^^^^^ | |
29 | | | |
30 | = help: consider using `f64::NAN` if you would like a constant representing NaN | |
31 | ||
32 | error: equal expressions as operands to `/` | |
33 | --> $DIR/zero_div_zero.rs:6:25 | |
34 | | | |
35 | LL | let other_f64_nan = 0.0f64 / 0.0; | |
36 | | ^^^^^^^^^^^^ | |
37 | ||
38 | error: constant division of `0.0` with `0.0` will always result in NaN | |
39 | --> $DIR/zero_div_zero.rs:6:25 | |
40 | | | |
41 | LL | let other_f64_nan = 0.0f64 / 0.0; | |
42 | | ^^^^^^^^^^^^ | |
43 | | | |
44 | = help: consider using `f64::NAN` if you would like a constant representing NaN | |
45 | ||
46 | error: equal expressions as operands to `/` | |
47 | --> $DIR/zero_div_zero.rs:7:28 | |
48 | | | |
49 | LL | let one_more_f64_nan = 0.0f64 / 0.0f64; | |
50 | | ^^^^^^^^^^^^^^^ | |
51 | ||
52 | error: constant division of `0.0` with `0.0` will always result in NaN | |
53 | --> $DIR/zero_div_zero.rs:7:28 | |
54 | | | |
55 | LL | let one_more_f64_nan = 0.0f64 / 0.0f64; | |
56 | | ^^^^^^^^^^^^^^^ | |
57 | | | |
58 | = help: consider using `f64::NAN` if you would like a constant representing NaN | |
59 | ||
60 | error: aborting due to 8 previous errors | |
61 |