]> git.proxmox.com Git - rustc.git/blob - src/test/ui/self/elision/lt-ref-self-async.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / self / elision / lt-ref-self-async.stderr
1 error: lifetime may not live long enough
2 --> $DIR/lt-ref-self-async.rs:13:9
3 |
4 LL | async fn ref_self(&self, f: &u32) -> &u32 {
5 | - - let's call the lifetime of this reference `'1`
6 | |
7 | let's call the lifetime of this reference `'2`
8 LL | f
9 | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
10 |
11 help: consider introducing a named lifetime parameter and update trait if needed
12 |
13 LL | async fn ref_self<'a>(&'a self, f: &'a u32) -> &u32 {
14 | ++++ ++ ++
15
16 error: lifetime may not live long enough
17 --> $DIR/lt-ref-self-async.rs:20:9
18 |
19 LL | async fn ref_Self(self: &Self, f: &u32) -> &u32 {
20 | - - let's call the lifetime of this reference `'1`
21 | |
22 | let's call the lifetime of this reference `'2`
23 LL | f
24 | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
25 |
26 help: consider introducing a named lifetime parameter and update trait if needed
27 |
28 LL | async fn ref_Self<'a>(self: &'a Self, f: &'a u32) -> &u32 {
29 | ++++ ++ ++
30
31 error: lifetime may not live long enough
32 --> $DIR/lt-ref-self-async.rs:25:9
33 |
34 LL | async fn box_ref_Self(self: Box<&Self>, f: &u32) -> &u32 {
35 | - - let's call the lifetime of this reference `'1`
36 | |
37 | let's call the lifetime of this reference `'2`
38 LL | f
39 | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
40 |
41 help: consider introducing a named lifetime parameter and update trait if needed
42 |
43 LL | async fn box_ref_Self<'a>(self: Box<&'a Self>, f: &'a u32) -> &u32 {
44 | ++++ ++ ++
45
46 error: lifetime may not live long enough
47 --> $DIR/lt-ref-self-async.rs:30:9
48 |
49 LL | async fn pin_ref_Self(self: Pin<&Self>, f: &u32) -> &u32 {
50 | - - let's call the lifetime of this reference `'1`
51 | |
52 | let's call the lifetime of this reference `'2`
53 LL | f
54 | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
55 |
56 help: consider introducing a named lifetime parameter and update trait if needed
57 |
58 LL | async fn pin_ref_Self<'a>(self: Pin<&'a Self>, f: &'a u32) -> &u32 {
59 | ++++ ++ ++
60
61 error: lifetime may not live long enough
62 --> $DIR/lt-ref-self-async.rs:35:9
63 |
64 LL | async fn box_box_ref_Self(self: Box<Box<&Self>>, f: &u32) -> &u32 {
65 | - - let's call the lifetime of this reference `'1`
66 | |
67 | let's call the lifetime of this reference `'2`
68 LL | f
69 | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
70 |
71 help: consider introducing a named lifetime parameter and update trait if needed
72 |
73 LL | async fn box_box_ref_Self<'a>(self: Box<Box<&'a Self>>, f: &'a u32) -> &u32 {
74 | ++++ ++ ++
75
76 error: lifetime may not live long enough
77 --> $DIR/lt-ref-self-async.rs:40:9
78 |
79 LL | async fn box_pin_Self(self: Box<Pin<&Self>>, f: &u32) -> &u32 {
80 | - - let's call the lifetime of this reference `'1`
81 | |
82 | let's call the lifetime of this reference `'2`
83 LL | f
84 | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
85 |
86 help: consider introducing a named lifetime parameter and update trait if needed
87 |
88 LL | async fn box_pin_Self<'a>(self: Box<Pin<&'a Self>>, f: &'a u32) -> &u32 {
89 | ++++ ++ ++
90
91 error: aborting due to 6 previous errors
92