diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-01-13 21:18:12 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-13 21:18:12 +0100 |
| commit | d7c1e0d1bfe6a19d201c8f259f77174e5171032d (patch) | |
| tree | 4d4508e6361a1165fd7eeac9d2092b7ba5876768 /src/librustdoc/html/static/source-script.js | |
| parent | 45d357265a350afdc34fe866c2cf30bc575990a6 (diff) | |
| parent | 10fbdbf949f3ca171a52010eb2c53547c3e5b4f5 (diff) | |
| download | rust-d7c1e0d1bfe6a19d201c8f259f77174e5171032d.tar.gz rust-d7c1e0d1bfe6a19d201c8f259f77174e5171032d.zip | |
Rollup merge of #57366 - estebank:point-match-discrim, r=varkor
Point at match discriminant on type error in match arm pattern
```
error[E0308]: mismatched types
--> src/main.rs:5:9
|
4 | let temp: usize = match a + b {
| ----- this expression has type `usize`
5 | Ok(num) => num,
| ^^^^^^^ expected usize, found enum `std::result::Result`
|
= note: expected type `usize`
found type `std::result::Result<_, _>`
```
Fix #57279.
Diffstat (limited to 'src/librustdoc/html/static/source-script.js')
0 files changed, 0 insertions, 0 deletions
