]> git.proxmox.com Git - rustc.git/blame - src/test/ui/self/elision/ref-mut-self-async.nll.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / self / elision / ref-mut-self-async.nll.stderr
CommitLineData
e1599b0c 1error: lifetime may not live long enough
04454e1e 2 --> $DIR/ref-mut-self-async.rs:16:9
e74abb32
XL
3 |
4LL | async fn ref_self(&mut self, f: &u32) -> &u32 {
60c5eb7d 5 | - - let's call the lifetime of this reference `'1`
e74abb32 6 | |
60c5eb7d 7 | let's call the lifetime of this reference `'2`
e74abb32 8LL | f
ba9703b0 9 | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
e1599b0c
XL
10
11error: lifetime may not live long enough
04454e1e 12 --> $DIR/ref-mut-self-async.rs:24:9
e74abb32
XL
13 |
14LL | async fn ref_Self(self: &mut Self, f: &u32) -> &u32 {
60c5eb7d 15 | - - let's call the lifetime of this reference `'1`
e74abb32 16 | |
60c5eb7d 17 | let's call the lifetime of this reference `'2`
e74abb32 18LL | f
ba9703b0 19 | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
e1599b0c
XL
20
21error: lifetime may not live long enough
04454e1e 22 --> $DIR/ref-mut-self-async.rs:30:9
e74abb32
XL
23 |
24LL | async fn box_ref_Self(self: Box<&mut Self>, f: &u32) -> &u32 {
60c5eb7d 25 | - - let's call the lifetime of this reference `'1`
e74abb32 26 | |
60c5eb7d 27 | let's call the lifetime of this reference `'2`
e74abb32 28LL | f
ba9703b0 29 | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
e1599b0c
XL
30
31error: lifetime may not live long enough
04454e1e 32 --> $DIR/ref-mut-self-async.rs:36:9
e74abb32
XL
33 |
34LL | async fn pin_ref_Self(self: Pin<&mut Self>, f: &u32) -> &u32 {
60c5eb7d 35 | - - let's call the lifetime of this reference `'1`
e74abb32 36 | |
60c5eb7d 37 | let's call the lifetime of this reference `'2`
e74abb32 38LL | f
ba9703b0 39 | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
e1599b0c
XL
40
41error: lifetime may not live long enough
04454e1e 42 --> $DIR/ref-mut-self-async.rs:42:9
e74abb32
XL
43 |
44LL | async fn box_box_ref_Self(self: Box<Box<&mut Self>>, f: &u32) -> &u32 {
60c5eb7d 45 | - - let's call the lifetime of this reference `'1`
e74abb32 46 | |
60c5eb7d 47 | let's call the lifetime of this reference `'2`
e74abb32 48LL | f
ba9703b0 49 | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
e1599b0c
XL
50
51error: lifetime may not live long enough
04454e1e 52 --> $DIR/ref-mut-self-async.rs:48:9
e74abb32
XL
53 |
54LL | async fn box_pin_ref_Self(self: Box<Pin<&mut Self>>, f: &u32) -> &u32 {
60c5eb7d 55 | - - let's call the lifetime of this reference `'1`
e74abb32 56 | |
60c5eb7d 57 | let's call the lifetime of this reference `'2`
e74abb32 58LL | f
ba9703b0 59 | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
e1599b0c 60
74b04a01 61error: aborting due to 6 previous errors
e1599b0c 62