Auto merge of #53051 - varkor:trait-method-pattern-arguments-error, r=petrochenkov
Emit error for pattern arguments in trait methods The error and check for this already existed, but the parser didn't try to parse trait method arguments as patterns, so the error was never emitted. This surfaces the error, so we get better errors than simple parse errors. This improves the error message described in https://github.com/rust-lang/rust/issues/53046. r? @petrochenkov
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#![feature(slice_sort_by_cached_key)]
|
||||
#![feature(str_escape)]
|
||||
#![feature(unicode_internals)]
|
||||
#![feature(catch_expr)]
|
||||
|
||||
#![recursion_limit="256"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user