Make TyS::is_suggestable more structual
This commit is contained in:
parent
8f117a77d0
commit
f29fb4792b
30 changed files with 112 additions and 99 deletions
|
|
@ -2,9 +2,7 @@ error[E0308]: mismatched types
|
|||
--> $DIR/default-match-bindings-forbidden.rs:6:5
|
||||
|
|
||||
LL | (x, y) = &(1, 2);
|
||||
| ^^^^^^ ------- this expression has type `&({integer}, {integer})`
|
||||
| |
|
||||
| expected reference, found tuple
|
||||
| ^^^^^^ expected reference, found tuple
|
||||
|
|
||||
= note: expected type `&({integer}, {integer})`
|
||||
found tuple `(_, _)`
|
||||
|
|
|
|||
|
|
@ -10,9 +10,7 @@ error[E0308]: mismatched types
|
|||
--> $DIR/tuple_destructure_fail.rs:8:5
|
||||
|
|
||||
LL | (a, a, b) = (1, 2);
|
||||
| ^^^^^^^^^ ------ this expression has type `({integer}, {integer})`
|
||||
| |
|
||||
| expected a tuple with 2 elements, found one with 3 elements
|
||||
| ^^^^^^^^^ expected a tuple with 2 elements, found one with 3 elements
|
||||
|
|
||||
= note: expected type `({integer}, {integer})`
|
||||
found tuple `(_, _, _)`
|
||||
|
|
@ -29,9 +27,7 @@ error[E0308]: mismatched types
|
|||
--> $DIR/tuple_destructure_fail.rs:10:5
|
||||
|
|
||||
LL | (_,) = (1, 2);
|
||||
| ^^^^ ------ this expression has type `({integer}, {integer})`
|
||||
| |
|
||||
| expected a tuple with 2 elements, found one with 1 element
|
||||
| ^^^^ expected a tuple with 2 elements, found one with 1 element
|
||||
|
|
||||
= note: expected type `({integer}, {integer})`
|
||||
found tuple `(_,)`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue