diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-06-05 13:07:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-05 13:07:03 +0200 |
| commit | 14dc34dd89604e68e33c38a237dbdeeaf50be33f (patch) | |
| tree | 6f1e09024a69e4edccd5d5e8af2d25086e410e76 /src/test/ui/impl-trait | |
| parent | 219380d840877de97b0e17674be7212ebc929d51 (diff) | |
| parent | 9be635306cdf06dde62e2c1ebaadcdc33f44f45c (diff) | |
| download | rust-14dc34dd89604e68e33c38a237dbdeeaf50be33f.tar.gz rust-14dc34dd89604e68e33c38a237dbdeeaf50be33f.zip | |
Rollup merge of #72260 - csmoe:issue-69276, r=estebank
Spell out `Self` in async function return Closes #69276 r? @tmandry
Diffstat (limited to 'src/test/ui/impl-trait')
| -rw-r--r-- | src/test/ui/impl-trait/bound-normalization-fail.stderr | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/ui/impl-trait/bound-normalization-fail.stderr b/src/test/ui/impl-trait/bound-normalization-fail.stderr index 36b4ebca4df..03aba10cc79 100644 --- a/src/test/ui/impl-trait/bound-normalization-fail.stderr +++ b/src/test/ui/impl-trait/bound-normalization-fail.stderr @@ -21,7 +21,7 @@ help: consider constraining the associated type `<T as impl_trait::Trait>::Assoc LL | fn foo_fail<T: Trait<Assoc = ()>>() -> impl FooLike<Output=T::Assoc> { | ^^^^^^^^^^^^ -error: `impl Trait` return type cannot contain a projection or `Self` that references lifetimes from a parent scope +error[E0760]: `impl Trait` return type cannot contain a projection or `Self` that references lifetimes from a parent scope --> $DIR/bound-normalization-fail.rs:43:41 | LL | fn foo2_fail<'a, T: Trait<'a>>() -> impl FooLike<Output=T::Assoc> { @@ -43,4 +43,5 @@ LL | fn foo2_fail<'a, T: Trait<'a, Assoc = ()>>() -> impl FooLike<Output=T:: error: aborting due to 3 previous errors; 1 warning emitted -For more information about this error, try `rustc --explain E0271`. +Some errors have detailed explanations: E0271, E0760. +For more information about an error, try `rustc --explain E0271`. |
