diff options
| author | csmoe <csmoe@msn.com> | 2020-05-16 17:10:08 +0800 |
|---|---|---|
| committer | csmoe <csmoe@msn.com> | 2020-05-18 08:44:38 +0800 |
| commit | 8841ede3648b5f12284dae850ec065374fd3af46 (patch) | |
| tree | c0e15a9bf4bb1c11c01fd2c3e8a7395ded5f758f /src/test/ui/impl-trait | |
| parent | 633e4aafe65cd424cf6c8076869df1b49a4e0ec4 (diff) | |
| download | rust-8841ede3648b5f12284dae850ec065374fd3af46.tar.gz rust-8841ede3648b5f12284dae850ec065374fd3af46.zip | |
bless suggestion on spell out
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 f5092044627..04b398f5b52 100644 --- a/src/test/ui/impl-trait/bound-normalization-fail.stderr +++ b/src/test/ui/impl-trait/bound-normalization-fail.stderr @@ -20,7 +20,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[E0755]: `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> { @@ -42,4 +42,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, E0755. +For more information about an error, try `rustc --explain E0271`. |
