]> git.lizzy.rs Git - rust.git/blob - tests/ui/zero_div_zero.stderr
Merge remote-tracking branch 'upstream/master' into prs
[rust.git] / tests / ui / zero_div_zero.stderr
1 error: equal expressions as operands to `/`
2  --> $DIR/zero_div_zero.rs:7:15
3   |
4 7 |     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:7:15
11   |
12 7 |     let nan = 0.0 / 0.0;
13   |               ^^^^^^^^^
14   |
15   = note: `-D clippy::zero-divided-by-zero` implied by `-D warnings`
16   = help: Consider using `std::f64::NAN` if you would like a constant representing NaN
17
18 error: equal expressions as operands to `/`
19  --> $DIR/zero_div_zero.rs:8:19
20   |
21 8 |     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:8:19
26   |
27 8 |     let f64_nan = 0.0 / 0.0f64;
28   |                   ^^^^^^^^^^^^
29   |
30   = help: Consider using `std::f64::NAN` if you would like a constant representing NaN
31
32 error: equal expressions as operands to `/`
33  --> $DIR/zero_div_zero.rs:9:25
34   |
35 9 |     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:9:25
40   |
41 9 |     let other_f64_nan = 0.0f64 / 0.0;
42   |                         ^^^^^^^^^^^^
43   |
44   = help: Consider using `std::f64::NAN` if you would like a constant representing NaN
45
46 error: equal expressions as operands to `/`
47   --> $DIR/zero_div_zero.rs:10:28
48    |
49 10 |     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:10:28
54    |
55 10 |     let one_more_f64_nan = 0.0f64/0.0f64;
56    |                            ^^^^^^^^^^^^^
57    |
58    = help: Consider using `std::f64::NAN` if you would like a constant representing NaN
59
60 error: aborting due to 8 previous errors
61