diff options
| author | Michael Goulet <michael@errs.io> | 2022-07-03 20:17:08 +0000 | 
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2022-08-07 23:57:53 +0000 | 
| commit | 750f04d30973b5615e54ee27c7336846d19943ee (patch) | |
| tree | c0d03c74353fea2b68e41fd39032a3e2679d22d2 /src/test/ui/async-await/async-block-control-flow-static-semantics.rs | |
| parent | d394408fb38c4de61f765a3ed5189d2731a1da91 (diff) | |
| download | rust-750f04d30973b5615e54ee27c7336846d19943ee.tar.gz rust-750f04d30973b5615e54ee27c7336846d19943ee.zip  | |
Implement special-cased projection error message for some common traits
Diffstat (limited to 'src/test/ui/async-await/async-block-control-flow-static-semantics.rs')
| -rw-r--r-- | src/test/ui/async-await/async-block-control-flow-static-semantics.rs | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/async-await/async-block-control-flow-static-semantics.rs b/src/test/ui/async-await/async-block-control-flow-static-semantics.rs index b831d610232..3f8cb7a5291 100644 --- a/src/test/ui/async-await/async-block-control-flow-static-semantics.rs +++ b/src/test/ui/async-await/async-block-control-flow-static-semantics.rs @@ -15,7 +15,7 @@ fn return_targets_async_block_not_fn() -> u8 { return 0u8; }; let _: &dyn Future<Output = ()> = █ - //~^ ERROR type mismatch + //~^ ERROR expected `impl Future<Output = u8>` to be a future that yields `()`, but it actually yields `u8` } async fn return_targets_async_block_not_async_fn() -> u8 { @@ -24,7 +24,7 @@ async fn return_targets_async_block_not_async_fn() -> u8 { return 0u8; }; let _: &dyn Future<Output = ()> = █ - //~^ ERROR type mismatch resolving `<impl Future<Output = u8> as Future>::Output == ()` + //~^ ERROR expected `impl Future<Output = u8>` to be a future that yields `()`, but it actually yields `u8` } fn no_break_in_async_block() {  | 
