You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0277]: cannot add `{float}` to `f64`
--> <source>:2:15
|
2 | let y = x + 1.0;
| ^ no implementation for `f64 + {float}`
|
= help: the trait `Add<{float}>` is not implemented for `f64`
= help: the following other types implement trait `Add<Rhs>`:
<&'a f64 asAdd<f64>>
<&f64asAdd<&f64>>
<f64asAdd<&f64>>
<f64 asAdd>
error: the type `fn(f64, _) -> <f64asAdd<_>>::Output` is not well-formed
--> <source>:2:15
|
2 | let y = x + 1.0;
| ^
That WF error is strange.
Probably also fixes: tests/ui/associated-types/issue-18655.rs
The text was updated successfully, but these errors were encountered:
…ar, r=lcnr
Canonicalize float var as float in new solver
Typo in new canonicalizer -- we should be canonicalizing float vars as `CanonicalTyVarKind::Float`, not `CanonicalTyVarKind::Int`.
Fixescompiler-errors/next-solver-hir-issues#9
That WF error is strange.
Probably also fixes: tests/ui/associated-types/issue-18655.rs
The text was updated successfully, but these errors were encountered: