Improve diagnostics

This commit is contained in:
varkor 2018-08-07 00:03:26 +01:00
parent 235905c080
commit a478cd41e3
4 changed files with 13 additions and 5 deletions

View file

@ -3,7 +3,7 @@ error[E0642]: patterns aren't allowed in trait methods
|
LL | fn foo((x, y): (i32, i32)); //~ ERROR patterns aren't allowed in trait methods
| ^^^^^^
help: give this argument a name or use an underscore to ignore it, instead of a tuple pattern
help: give this argument a name or use an underscore to ignore it instead of using a tuple pattern
|
LL | fn foo(_: (i32, i32)); //~ ERROR patterns aren't allowed in trait methods
| ^
@ -13,7 +13,7 @@ error[E0642]: patterns aren't allowed in trait methods
|
LL | fn bar((x, y): (i32, i32)) {} //~ ERROR patterns aren't allowed in trait methods
| ^^^^^^
help: give this argument a name or use an underscore to ignore it, instead of a tuple pattern
help: give this argument a name or use an underscore to ignore it instead of using a tuple pattern
|
LL | fn bar(_: (i32, i32)) {} //~ ERROR patterns aren't allowed in trait methods
| ^