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 commit is contained in:
varkor
2018-08-04 02:23:21 +01:00
parent a77dfcc79f
commit 90a6954327
5 changed files with 71 additions and 21 deletions

View File

@@ -26,6 +26,7 @@
#![feature(slice_sort_by_cached_key)]
#![feature(str_escape)]
#![feature(unicode_internals)]
#![feature(catch_expr)]
#![recursion_limit="256"]