Remove E0308 note when primary label has all info
This commit is contained in:
parent
b2e6aef073
commit
94c6425464
237 changed files with 225 additions and 1278 deletions
|
@ -3,9 +3,6 @@ error[E0308]: mismatched types
|
|||
|
|
||||
LL | FOO => {},
|
||||
| ^^^ expected &Foo, found struct `Foo`
|
||||
|
|
||||
= note: expected type `&Foo`
|
||||
found struct `Foo`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ error[E0308]: mismatched types
|
|||
--> $DIR/lit.rs:16:9
|
||||
|
|
||||
LL | b"abc" => true,
|
||||
| ^^^^^^ expected &[u8], found array of 3 elements
|
||||
| ^^^^^^ expected &[u8], found array `[u8; 3]`
|
||||
|
|
||||
= note: expected type `&&[u8]`
|
||||
found reference `&'static [u8; 3]`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue