Modify primary span label for E0308
The previous output was unintuitive to users.
This commit is contained in:
parent
006ca9b14d
commit
62ba3e70a1
383 changed files with 889 additions and 926 deletions
|
@ -4,7 +4,7 @@ error[E0308]: mismatched types
|
|||
LL | match Some("foo") {
|
||||
| ----------- this expression has type `Option<&str>`
|
||||
LL | None::<isize> => {}
|
||||
| ^^^^^^^^^^^^^ expected `&str`, found `isize`
|
||||
| ^^^^^^^^^^^^^ expected `Option<&str>`, found `Option<isize>`
|
||||
|
|
||||
= note: expected enum `Option<&str>`
|
||||
found enum `Option<isize>`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue