]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/zero_div_zero.stderr
Auto merge of #99963 - cjgillot:iter-submodule, r=compiler-errors
[rust.git] / src / tools / clippy / tests / ui / zero_div_zero.stderr
1 error: constant division of `0.0` with `0.0` will always result in NaN
2   --> $DIR/zero_div_zero.rs:4:15
3    |
4 LL |     let nan = 0.0 / 0.0;
5    |               ^^^^^^^^^
6    |
7    = note: `-D clippy::zero-divided-by-zero` implied by `-D warnings`
8    = help: consider using `f64::NAN` if you would like a constant representing NaN
9
10 error: constant division of `0.0` with `0.0` will always result in NaN
11   --> $DIR/zero_div_zero.rs:5:19
12    |
13 LL |     let f64_nan = 0.0 / 0.0f64;
14    |                   ^^^^^^^^^^^^
15    |
16    = help: consider using `f64::NAN` if you would like a constant representing NaN
17
18 error: constant division of `0.0` with `0.0` will always result in NaN
19   --> $DIR/zero_div_zero.rs:6:25
20    |
21 LL |     let other_f64_nan = 0.0f64 / 0.0;
22    |                         ^^^^^^^^^^^^
23    |
24    = help: consider using `f64::NAN` if you would like a constant representing NaN
25
26 error: constant division of `0.0` with `0.0` will always result in NaN
27   --> $DIR/zero_div_zero.rs:7:28
28    |
29 LL |     let one_more_f64_nan = 0.0f64 / 0.0f64;
30    |                            ^^^^^^^^^^^^^^^
31    |
32    = help: consider using `f64::NAN` if you would like a constant representing NaN
33
34 error: aborting due to 4 previous errors
35