]> git.lizzy.rs Git - rust.git/blob - tests/ui/zero_div_zero.stderr
clean tests/ui/zero_div_zero.rs
[rust.git] / tests / ui / zero_div_zero.stderr
1 warning: 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: #[warn(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: lint level defined here
16  --> $DIR/zero_div_zero.rs:5:8
17   |
18 5 | #[deny(zero_divided_by_zero)]
19   |        ^^^^^^^^^^^^^^^^^^^^
20   = help: Consider using `std::f32::NAN` if you would like a constant representing NaN
21
22 warning: equal expressions as operands to `/`
23  --> $DIR/zero_div_zero.rs:8:19
24   |
25 8 |     let f64_nan = 0.0 / 0.0f64;
26   |                   ^^^^^^^^^^^^
27   |
28   = note: #[warn(eq_op)] on by default
29
30 error: constant division of 0.0 with 0.0 will always result in NaN
31  --> $DIR/zero_div_zero.rs:8:19
32   |
33 8 |     let f64_nan = 0.0 / 0.0f64;
34   |                   ^^^^^^^^^^^^
35   |
36   = help: Consider using `std::f64::NAN` if you would like a constant representing NaN
37
38 warning: equal expressions as operands to `/`
39  --> $DIR/zero_div_zero.rs:9:25
40   |
41 9 |     let other_f64_nan = 0.0f64 / 0.0;
42   |                         ^^^^^^^^^^^^
43   |
44   = note: #[warn(eq_op)] on by default
45
46 error: constant division of 0.0 with 0.0 will always result in NaN
47  --> $DIR/zero_div_zero.rs:9:25
48   |
49 9 |     let other_f64_nan = 0.0f64 / 0.0;
50   |                         ^^^^^^^^^^^^
51   |
52   = help: Consider using `std::f64::NAN` if you would like a constant representing NaN
53
54 warning: equal expressions as operands to `/`
55   --> $DIR/zero_div_zero.rs:10:28
56    |
57 10 |     let one_more_f64_nan = 0.0f64/0.0f64;
58    |                            ^^^^^^^^^^^^^
59    |
60    = note: #[warn(eq_op)] on by default
61
62 error: constant division of 0.0 with 0.0 will always result in NaN
63   --> $DIR/zero_div_zero.rs:10:28
64    |
65 10 |     let one_more_f64_nan = 0.0f64/0.0f64;
66    |                            ^^^^^^^^^^^^^
67    |
68    = help: Consider using `std::f64::NAN` if you would like a constant representing NaN
69
70 error: aborting due to 4 previous errors
71