bound inconsistently across alternatives separated by |
#77358
Labels
A-patterns
Relating to patterns and pattern matching
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The x type in both patterns is
&u32
, but the compiler will report inconsistency in the types in both patterns.Ref: https://github.com/rust-lang/rfcs/blob/master/text/2005-match-ergonomics.md#examples
The text was updated successfully, but these errors were encountered: