Improve diagnostics
This commit is contained in:
parent
235905c080
commit
a478cd41e3
4 changed files with 13 additions and 5 deletions
|
|
@ -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
|
||||
| ^
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue