rust/tests/ui/issues/issue-24352.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
699 B
Plaintext
Raw Normal View History

2018-07-15 21:11:54 +00:00
error[E0277]: cannot subtract `{integer}` from `f64`
2018-12-25 15:56:47 +00:00
--> $DIR/issue-24352.rs:3:12
2018-07-15 21:11:54 +00:00
|
2019-03-09 12:03:44 +00:00
LL | 1.0f64 - 1
2018-07-15 21:11:54 +00:00
| ^ no implementation for `f64 - {integer}`
|
= help: the trait `Sub<{integer}>` is not implemented for `f64`
= help: the following other types implement trait `Sub<Rhs>`:
2024-06-07 14:54:42 +00:00
`&'a f64` implements `Sub<f64>`
`&f64` implements `Sub<&f64>`
`f64` implements `Sub<&f64>`
`f64` implements `Sub`
help: consider using a floating-point literal by writing it with `.0`
|
LL | 1.0f64 - 1.0
| ++
2018-07-15 21:11:54 +00:00
error: aborting due to 1 previous error
2018-07-15 21:11:54 +00:00
For more information about this error, try `rustc --explain E0277`.