diff options
| author | bors <bors@rust-lang.org> | 2017-01-12 01:01:06 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-01-12 01:01:06 +0000 |
| commit | 1ca100d0428985f916eea153886762bed3909771 (patch) | |
| tree | e8610f263985913c19297202fbd0b1f1c5a419b3 /src/test/incremental/thinlto | |
| parent | b27c7095606ad9386a7038d7af03abd7f948f02f (diff) | |
| parent | d723e02dfc94e8ab2e8d3cb7930febeed0a7651c (diff) | |
| download | rust-1ca100d0428985f916eea153886762bed3909771.tar.gz rust-1ca100d0428985f916eea153886762bed3909771.zip | |
Auto merge of #38605 - estebank:fix-38371, r=nikomatsakis
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.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
