Be more specific in the suggestion filtering
This commit is contained in:
parent
0e7e9382fa
commit
742b48dc39
3 changed files with 56 additions and 11 deletions
|
|
@ -20,7 +20,10 @@ error[E0308]: mismatched types
|
|||
--> $DIR/destructure-trait-ref.rs:31:10
|
||||
|
|
||||
LL | let &&x = &1isize as &T;
|
||||
| ^^ expected trait T, found reference
|
||||
| ^^
|
||||
| |
|
||||
| expected trait T, found reference
|
||||
| help: you can probaly remove the explicit borrow: `x`
|
||||
|
|
||||
= note: expected type `dyn T`
|
||||
found type `&_`
|
||||
|
|
@ -29,7 +32,10 @@ error[E0308]: mismatched types
|
|||
--> $DIR/destructure-trait-ref.rs:36:11
|
||||
|
|
||||
LL | let &&&x = &(&1isize as &T);
|
||||
| ^^ expected trait T, found reference
|
||||
| ^^
|
||||
| |
|
||||
| expected trait T, found reference
|
||||
| help: you can probaly remove the explicit borrow: `x`
|
||||
|
|
||||
= note: expected type `dyn T`
|
||||
found type `&_`
|
||||
|
|
|
|||
|
|
@ -12,7 +12,10 @@ error[E0308]: mismatched types
|
|||
--> $DIR/issue-38371.rs:18:9
|
||||
|
|
||||
LL | fn agh(&&bar: &u32) {
|
||||
| ^^^^ expected u32, found reference
|
||||
| ^^^^
|
||||
| |
|
||||
| expected u32, found reference
|
||||
| help: you can probaly remove the explicit borrow: `bar`
|
||||
|
|
||||
= note: expected type `u32`
|
||||
found type `&_`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue