]> git.lizzy.rs Git - rust.git/blob - clippy_tests/examples/zero_div_zero.stderr
da6f28dba7466e6c4ad4a4f7f6aa7138aa6fc048
[rust.git] / clippy_tests / examples / zero_div_zero.stderr
1 error: equal expressions as operands to `/`
2  --> zero_div_zero.rs:7:15
3   |
4 7 |     let nan = 0.0 / 0.0;
5   |               ^^^^^^^^^
6   |
7   = note: `-D eq-op` implied by `-D warnings`
8
9 error: constant division of 0.0 with 0.0 will always result in NaN
10  --> zero_div_zero.rs:7:15
11   |
12 7 |     let nan = 0.0 / 0.0;
13   |               ^^^^^^^^^
14   |
15   = note: `-D zero-divided-by-zero` implied by `-D warnings`
16   = help: Consider using `std::f32::NAN` if you would like a constant representing NaN
17
18 error: equal expressions as operands to `/`
19  --> zero_div_zero.rs:8:19
20   |
21 8 |     let f64_nan = 0.0 / 0.0f64;
22   |                   ^^^^^^^^^^^^
23   |
24   = note: `-D eq-op` implied by `-D warnings`
25
26 error: constant division of 0.0 with 0.0 will always result in NaN
27  --> zero_div_zero.rs:8:19
28   |
29 8 |     let f64_nan = 0.0 / 0.0f64;
30   |                   ^^^^^^^^^^^^
31   |
32   = note: `-D zero-divided-by-zero` implied by `-D warnings`
33   = help: Consider using `std::f64::NAN` if you would like a constant representing NaN
34
35 error: equal expressions as operands to `/`
36  --> zero_div_zero.rs:9:25
37   |
38 9 |     let other_f64_nan = 0.0f64 / 0.0;
39   |                         ^^^^^^^^^^^^
40   |
41   = note: `-D eq-op` implied by `-D warnings`
42
43 error: constant division of 0.0 with 0.0 will always result in NaN
44  --> zero_div_zero.rs:9:25
45   |
46 9 |     let other_f64_nan = 0.0f64 / 0.0;
47   |                         ^^^^^^^^^^^^
48   |
49   = note: `-D zero-divided-by-zero` implied by `-D warnings`
50   = help: Consider using `std::f64::NAN` if you would like a constant representing NaN
51
52 error: equal expressions as operands to `/`
53   --> zero_div_zero.rs:10:28
54    |
55 10 |     let one_more_f64_nan = 0.0f64/0.0f64;
56    |                            ^^^^^^^^^^^^^
57    |
58    = note: `-D eq-op` implied by `-D warnings`
59
60 error: constant division of 0.0 with 0.0 will always result in NaN
61   --> zero_div_zero.rs:10:28
62    |
63 10 |     let one_more_f64_nan = 0.0f64/0.0f64;
64    |                            ^^^^^^^^^^^^^
65    |
66    = note: `-D zero-divided-by-zero` implied by `-D warnings`
67    = help: Consider using `std::f64::NAN` if you would like a constant representing NaN
68
69 error: aborting due to previous error(s)
70
71 error: Could not compile `clippy_tests`.
72
73 To learn more, run the command again with --verbose.