]> git.lizzy.rs Git - rust.git/blob - src/test/ui/self/arbitrary_self_types_pin_lifetime_mismatch-async.stderr
Update ui tests
[rust.git] / src / test / ui / self / arbitrary_self_types_pin_lifetime_mismatch-async.stderr
1 error[E0623]: lifetime mismatch
2   --> $DIR/arbitrary_self_types_pin_lifetime_mismatch-async.rs:8:52
3    |
4 LL |     async fn a(self: Pin<&Foo>, f: &Foo) -> &Foo { f }
5    |                          ----               ----   ^ ...but data from `f` is returned here
6    |                          |
7    |                          this parameter and the return type are declared with different lifetimes...
8
9 error[E0623]: lifetime mismatch
10   --> $DIR/arbitrary_self_types_pin_lifetime_mismatch-async.rs:11:82
11    |
12 LL |     async fn c(self: Pin<&Self>, f: &Foo, g: &Foo) -> (Pin<&Foo>, &Foo) { (self, f) }
13    |                          -----                        -----------------          ^ ...but data from `f` is returned here
14    |                          |
15    |                          this parameter and the return type are declared with different lifetimes...
16
17 error[E0623]: lifetime mismatch
18   --> $DIR/arbitrary_self_types_pin_lifetime_mismatch-async.rs:17:64
19    |
20 LL |     async fn bar<'a>(self: Alias<&Self>, arg: &'a ()) -> &() { arg }
21    |                                  -----                   ---   ^^^ ...but data from `arg` is returned here
22    |                                  |
23    |                                  this parameter and the return type are declared with different lifetimes...
24
25 error: aborting due to 3 previous errors
26