]> git.lizzy.rs Git - rust.git/blob - src/test/ui/self/arbitrary_self_types_pin_lifetime_mismatch.stderr
Update ui tests
[rust.git] / src / test / ui / self / arbitrary_self_types_pin_lifetime_mismatch.stderr
1 error[E0623]: lifetime mismatch
2   --> $DIR/arbitrary_self_types_pin_lifetime_mismatch.rs:8:46
3    |
4 LL |     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.rs:10:76
11    |
12 LL |     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.rs:15:58
19    |
20 LL |     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