]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/zero_div_zero.stderr
Auto merge of #78448 - rylev:cache-foreign_modules, r=wesleywiser
[rust.git] / src / tools / clippy / tests / ui / zero_div_zero.stderr
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