Remove E0308 note when primary label has all info

This commit is contained in:
Esteban Küber 2019-11-14 23:45:30 -08:00
parent b2e6aef073
commit 94c6425464
237 changed files with 225 additions and 1278 deletions

View file

@ -25,9 +25,6 @@ LL | fn return_targets_async_block_not_fn() -> u8 {
| --------------------------------- ^^ expected u8, found ()
| |
| implicitly returns `()` as its body has no tail or `return` expression
|
= note: expected type `u8`
found unit type `()`
error[E0271]: type mismatch resolving `<impl std::future::Future as std::future::Future>::Output == ()`
--> $DIR/async-block-control-flow-static-semantics.rs:18:39
@ -35,8 +32,6 @@ error[E0271]: type mismatch resolving `<impl std::future::Future as std::future:
LL | let _: &dyn Future<Output = ()> = &block;
| ^^^^^^ expected (), found u8
|
= note: expected unit type `()`
found type `u8`
= note: required for the cast to the object type `dyn std::future::Future<Output = ()>`
error[E0308]: mismatched types
@ -51,9 +46,6 @@ LL | | return 0u8;
LL | |
LL | | }
| |_^ expected u8, found ()
|
= note: expected type `u8`
found unit type `()`
error[E0271]: type mismatch resolving `<impl std::future::Future as std::future::Future>::Output == ()`
--> $DIR/async-block-control-flow-static-semantics.rs:27:39
@ -61,8 +53,6 @@ error[E0271]: type mismatch resolving `<impl std::future::Future as std::future:
LL | let _: &dyn Future<Output = ()> = &block;
| ^^^^^^ expected (), found u8
|
= note: expected unit type `()`
found type `u8`
= note: required for the cast to the object type `dyn std::future::Future<Output = ()>`
error[E0308]: mismatched types