]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-24352.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / issues / issue-24352.stderr
1 error[E0277]: cannot subtract `{integer}` from `f64`
2 --> $DIR/issue-24352.rs:3:12
3 |
4 LL | 1.0f64 - 1
5 | ^ no implementation for `f64 - {integer}`
6 |
7 = help: the trait `Sub<{integer}>` is not implemented for `f64`
8 = help: the following other types implement trait `Sub<Rhs>`:
9 <&'a f64 as Sub<f64>>
10 <&f64 as Sub<&f64>>
11 <f64 as Sub<&f64>>
12 <f64 as Sub>
13 help: consider using a floating-point literal by writing it with `.0`
14 |
15 LL | 1.0f64 - 1.0
16 | ++
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0277`.