Suggest solutions for `fn foo(&foo: Foo)`
For a given file:
```rust
struct Foo {}
fn foo(&foo: Foo) {}
```
suggest:
```
error[E0308]: mismatched types
--> file.rs:3:8
|
3 | fn foo(&foo: Foo) {}
| ^^^^ expected struct `Foo`, found reference
|
= note: expected type `Foo`
= note: found type `&_`
= help: did you mean `foo: &Foo`?
```
Fix #38371.
|
||
|---|---|---|
| .. | ||
| check | ||
| coherence | ||
| variance | ||
| astconv.rs | ||
| Cargo.toml | ||
| check_unused.rs | ||
| collect.rs | ||
| constrained_type_params.rs | ||
| diagnostics.rs | ||
| impl_wf_check.rs | ||
| lib.rs | ||
| rscope.rs | ||