Slice patterns cannot be used in trait methods #50571
Labels
A-parser
Area: The parsing of Rust source code to an AST
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following code works on beta:
But when used in a trait like so:
rustc reports the following error:
The text was updated successfully, but these errors were encountered: