diff options
| author | bors <bors@rust-lang.org> | 2025-08-19 08:04:59 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-08-19 08:04:59 +0000 |
| commit | 49fc0cc3e9ae608b4938b2c7640fc6106446a9b6 (patch) | |
| tree | cc9c57ea04689c1565a9abfd11cdd77d31285c8e /tests/ui/async-await/higher-ranked-auto-trait-6.no_assumptions.stderr | |
| parent | 47b72a3455b75c1e33aa211e516255752352681e (diff) | |
| parent | a89083b8edbc6a0f8f300c7cc4eae215f5a9434c (diff) | |
| download | rust-49fc0cc3e9ae608b4938b2c7640fc6106446a9b6.tar.gz rust-49fc0cc3e9ae608b4938b2c7640fc6106446a9b6.zip | |
Auto merge of #145395 - lcnr:review-coroutine-witness, r=petrochenkov
[BETA] Revert "Remove the witness type from coroutine args" fixes rust-lang/rust#145151 and rust-lang/rust#145288 we do not revert on nightly as its instead fixed by rust-lang/rust#145194 and rust-lang/rust#145338. See the discussion in https://rust-lang.zulipchat.com/#narrow/channel/238009-t-compiler.2Fmeetings/topic/.5Bweekly.5D.202025-08-14/near/534490313
Diffstat (limited to 'tests/ui/async-await/higher-ranked-auto-trait-6.no_assumptions.stderr')
| -rw-r--r-- | tests/ui/async-await/higher-ranked-auto-trait-6.no_assumptions.stderr | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/tests/ui/async-await/higher-ranked-auto-trait-6.no_assumptions.stderr b/tests/ui/async-await/higher-ranked-auto-trait-6.no_assumptions.stderr index d1c88101618..d1f2d9a0753 100644 --- a/tests/ui/async-await/higher-ranked-auto-trait-6.no_assumptions.stderr +++ b/tests/ui/async-await/higher-ranked-auto-trait-6.no_assumptions.stderr @@ -21,6 +21,30 @@ LL | Box::new(async { new(|| async { f().await }).await }) = help: consider pinning your async block and casting it to a trait object = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` -error: aborting due to 2 previous errors +error[E0308]: mismatched types + --> $DIR/higher-ranked-auto-trait-6.rs:16:5 + | +LL | Box::new(async { new(|| async { f().await }).await }) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other + | + = note: expected `async` block `{async block@$DIR/higher-ranked-auto-trait-6.rs:16:29: 16:34}` + found `async` block `{async block@$DIR/higher-ranked-auto-trait-6.rs:16:29: 16:34}` + = note: no two async blocks, even if identical, have the same type + = help: consider pinning your async block and casting it to a trait object + = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` + +error[E0308]: mismatched types + --> $DIR/higher-ranked-auto-trait-6.rs:16:5 + | +LL | Box::new(async { new(|| async { f().await }).await }) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other + | + = note: expected `async` block `{async block@$DIR/higher-ranked-auto-trait-6.rs:16:29: 16:34}` + found `async` block `{async block@$DIR/higher-ranked-auto-trait-6.rs:16:29: 16:34}` + = note: no two async blocks, even if identical, have the same type + = help: consider pinning your async block and casting it to a trait object + = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` + +error: aborting due to 4 previous errors For more information about this error, try `rustc --explain E0308`. |
