fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.3 KiB36 linesraw
1error: constant division of `0.0` with `0.0` will always result in NaN
2  --> $DIR/zero_div_zero.rs:4:15
3   |
4LL |     let nan = 0.0 / 0.0;
5   |               ^^^^^^^^^
6   |
7   = help: consider using `f64::NAN` if you would like a constant representing NaN
8   = note: `-D clippy::zero-divided-by-zero` implied by `-D warnings`
9   = help: to override `-D warnings` add `#[allow(clippy::zero_divided_by_zero)]`
10
11error: constant division of `0.0` with `0.0` will always result in NaN
12  --> $DIR/zero_div_zero.rs:6:19
13   |
14LL |     let f64_nan = 0.0 / 0.0f64;
15   |                   ^^^^^^^^^^^^
16   |
17   = help: consider using `f64::NAN` if you would like a constant representing NaN
18
19error: constant division of `0.0` with `0.0` will always result in NaN
20  --> $DIR/zero_div_zero.rs:8:25
21   |
22LL |     let other_f64_nan = 0.0f64 / 0.0;
23   |                         ^^^^^^^^^^^^
24   |
25   = help: consider using `f64::NAN` if you would like a constant representing NaN
26
27error: constant division of `0.0` with `0.0` will always result in NaN
28  --> $DIR/zero_div_zero.rs:10:28
29   |
30LL |     let one_more_f64_nan = 0.0f64 / 0.0f64;
31   |                            ^^^^^^^^^^^^^^^
32   |
33   = help: consider using `f64::NAN` if you would like a constant representing NaN
34
35error: aborting due to 4 previous errors
36