]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/zero_div_zero.stderr
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / tools / clippy / tests / ui / zero_div_zero.stderr
CommitLineData
f20569fa
XL
1error: equal expressions as operands to `/`
2 --> $DIR/zero_div_zero.rs:4:15
3 |
4LL | let nan = 0.0 / 0.0;
5 | ^^^^^^^^^
6 |
7 = note: `#[deny(clippy::eq_op)]` on by default
8
9error: constant division of `0.0` with `0.0` will always result in NaN
10 --> $DIR/zero_div_zero.rs:4:15
11 |
12LL | let nan = 0.0 / 0.0;
13 | ^^^^^^^^^
14 |
15 = note: `-D clippy::zero-divided-by-zero` implied by `-D warnings`
16 = help: consider using `f64::NAN` if you would like a constant representing NaN
17
18error: equal expressions as operands to `/`
19 --> $DIR/zero_div_zero.rs:5:19
20 |
21LL | let f64_nan = 0.0 / 0.0f64;
22 | ^^^^^^^^^^^^
23
24error: constant division of `0.0` with `0.0` will always result in NaN
25 --> $DIR/zero_div_zero.rs:5:19
26 |
27LL | let f64_nan = 0.0 / 0.0f64;
28 | ^^^^^^^^^^^^
29 |
30 = help: consider using `f64::NAN` if you would like a constant representing NaN
31
32error: equal expressions as operands to `/`
33 --> $DIR/zero_div_zero.rs:6:25
34 |
35LL | let other_f64_nan = 0.0f64 / 0.0;
36 | ^^^^^^^^^^^^
37
38error: constant division of `0.0` with `0.0` will always result in NaN
39 --> $DIR/zero_div_zero.rs:6:25
40 |
41LL | let other_f64_nan = 0.0f64 / 0.0;
42 | ^^^^^^^^^^^^
43 |
44 = help: consider using `f64::NAN` if you would like a constant representing NaN
45
46error: equal expressions as operands to `/`
47 --> $DIR/zero_div_zero.rs:7:28
48 |
49LL | let one_more_f64_nan = 0.0f64 / 0.0f64;
50 | ^^^^^^^^^^^^^^^
51
52error: constant division of `0.0` with `0.0` will always result in NaN
53 --> $DIR/zero_div_zero.rs:7:28
54 |
55LL | let one_more_f64_nan = 0.0f64 / 0.0f64;
56 | ^^^^^^^^^^^^^^^
57 |
58 = help: consider using `f64::NAN` if you would like a constant representing NaN
59
60error: aborting due to 8 previous errors
61