diff options
| author | Michael Goulet <michael@errs.io> | 2023-02-21 03:58:38 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-03-03 05:02:34 +0000 |
| commit | 4b23a224ab644cea703922859f64950898eba90d (patch) | |
| tree | a5762cc92db9f4cd7f416714be44207ad7f3745d /tests/ui/async-await/multiple-lifetimes | |
| parent | 13471d3b2046cce78181dde6cfc146c09f55e29e (diff) | |
| download | rust-4b23a224ab644cea703922859f64950898eba90d.tar.gz rust-4b23a224ab644cea703922859f64950898eba90d.zip | |
Label opaque type for 'captures lifetime' error message
Diffstat (limited to 'tests/ui/async-await/multiple-lifetimes')
| -rw-r--r-- | tests/ui/async-await/multiple-lifetimes/ret-impl-trait-one.stderr | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/ui/async-await/multiple-lifetimes/ret-impl-trait-one.stderr b/tests/ui/async-await/multiple-lifetimes/ret-impl-trait-one.stderr index ae4d0d5853c..5ae1d78a92b 100644 --- a/tests/ui/async-await/multiple-lifetimes/ret-impl-trait-one.stderr +++ b/tests/ui/async-await/multiple-lifetimes/ret-impl-trait-one.stderr @@ -17,8 +17,9 @@ error[E0700]: hidden type for `impl Trait<'a>` captures lifetime that does not a --> $DIR/ret-impl-trait-one.rs:16:80 | LL | async fn async_ret_impl_trait1<'a, 'b>(a: &'a u8, b: &'b u8) -> impl Trait<'a> { - | ____________________________________--__________________________________________^ - | | | + | ____________________________________--___________________________--------------_^ + | | | | + | | | opaque type defined here | | hidden type `(&'a u8, &'b u8)` captures the lifetime `'b` as defined here LL | | LL | | (a, b) |
