Make TyS::is_suggestable more structual

This commit is contained in:
Michael Goulet 2021-12-13 21:22:02 -08:00
parent 8f117a77d0
commit f29fb4792b
30 changed files with 112 additions and 99 deletions

View file

@ -3,9 +3,6 @@ error[E0308]: mismatched types
|
LL | let &_
| ^^ types differ in mutability
...
LL | = foo;
| --- this expression has type `&mut {integer}`
|
= note: expected mutable reference `&mut {integer}`
found reference `&_`
@ -15,9 +12,6 @@ error[E0308]: mismatched types
|
LL | let &mut _
| ^^^^^^ types differ in mutability
...
LL | = bar;
| --- this expression has type `&{integer}`
|
= note: expected reference `&{integer}`
found mutable reference `&mut _`