about summary refs log tree commit diff
path: root/src/test/ui/self
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2020-06-02 16:05:48 -0700
committerEsteban Küber <esteban@kuber.com.ar>2020-06-15 09:06:58 -0700
commite31367de6b5ed3878711cdd1761828587b9639fb (patch)
tree224c608363536f67a2cc99546f77d3f0290b1872 /src/test/ui/self
parent34d8692262a8299025379e5178041d0d52a0329e (diff)
downloadrust-e31367de6b5ed3878711cdd1761828587b9639fb.tar.gz
rust-e31367de6b5ed3878711cdd1761828587b9639fb.zip
small tweaks
Diffstat (limited to 'src/test/ui/self')
-rw-r--r--src/test/ui/self/arbitrary_self_types_pin_lifetime_impl_trait-async.stderr11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/test/ui/self/arbitrary_self_types_pin_lifetime_impl_trait-async.stderr b/src/test/ui/self/arbitrary_self_types_pin_lifetime_impl_trait-async.stderr
index 69022607bd1..9b04069136b 100644
--- a/src/test/ui/self/arbitrary_self_types_pin_lifetime_impl_trait-async.stderr
+++ b/src/test/ui/self/arbitrary_self_types_pin_lifetime_impl_trait-async.stderr
@@ -2,15 +2,10 @@ error[E0758]: cannot infer an appropriate lifetime
   --> $DIR/arbitrary_self_types_pin_lifetime_impl_trait-async.rs:8:16
    |
 LL |     async fn f(self: Pin<&Self>) -> impl Clone { self }
-   |                ^^^^  ---------- this data with an anonymous lifetime `'_`...
-   |                |
+   |                ^^^^  ----------     ---------- ...and is required to live as long as `'static` here
+   |                |     |
+   |                |     this data with an anonymous lifetime `'_`...
    |                ...is captured here...
-   |
-note: ...and is required to live as long as `'static` here
-  --> $DIR/arbitrary_self_types_pin_lifetime_impl_trait-async.rs:8:37
-   |
-LL |     async fn f(self: Pin<&Self>) -> impl Clone { self }
-   |                                     ^^^^^^^^^^
 
 error: aborting due to previous error