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
A typo of => to = in a match arm currently results in a lot of cascading errors.
error: expected one of `!`, `(`, `...`, `..=`, `..`, `::`, `=>`, `if`, `{`, or `|`, found `=`
--> compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs:244:39
|
244 | SelectionError::Ambiguous = {
| ^ expected one of 10 possible tokens
We should gracefully handle some cases like > and = instead of => if followed by a { in a match arm.
A typo of
=>to=in a match arm currently results in a lot of cascading errors.We should gracefully handle some cases like
>and=instead of=>if followed by a{in a match arm.