]> git.proxmox.com Git - rustc.git/blob - src/test/ui/self/elision/ref-mut-struct-async.nll.stderr
New upstream version 1.40.0+dfsg1
[rustc.git] / src / test / ui / self / elision / ref-mut-struct-async.nll.stderr
1 error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
2 --> $DIR/ref-mut-struct-async.rs:13:56
3 |
4 LL | async fn ref_Struct(self: &mut Struct, f: &u32) -> &u32 {
5 | ^^^^
6 |
7 = note: hidden type `impl std::future::Future` captures lifetime '_#15r
8
9 error: lifetime may not live long enough
10 --> $DIR/ref-mut-struct-async.rs:14:9
11 |
12 LL | async fn ref_Struct(self: &mut Struct, f: &u32) -> &u32 {
13 | -
14 | |
15 | lifetime `'_` defined here
16 | lifetime `'_` defined here
17 LL | f
18 | ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
19
20 error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
21 --> $DIR/ref-mut-struct-async.rs:17:65
22 |
23 LL | async fn box_ref_Struct(self: Box<&mut Struct>, f: &u32) -> &u32 {
24 | ^^^^
25 |
26 = note: hidden type `impl std::future::Future` captures lifetime '_#15r
27
28 error: lifetime may not live long enough
29 --> $DIR/ref-mut-struct-async.rs:18:9
30 |
31 LL | async fn box_ref_Struct(self: Box<&mut Struct>, f: &u32) -> &u32 {
32 | -
33 | |
34 | lifetime `'_` defined here
35 | lifetime `'_` defined here
36 LL | f
37 | ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
38
39 error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
40 --> $DIR/ref-mut-struct-async.rs:21:65
41 |
42 LL | async fn pin_ref_Struct(self: Pin<&mut Struct>, f: &u32) -> &u32 {
43 | ^^^^
44 |
45 = note: hidden type `impl std::future::Future` captures lifetime '_#15r
46
47 error: lifetime may not live long enough
48 --> $DIR/ref-mut-struct-async.rs:22:9
49 |
50 LL | async fn pin_ref_Struct(self: Pin<&mut Struct>, f: &u32) -> &u32 {
51 | -
52 | |
53 | lifetime `'_` defined here
54 | lifetime `'_` defined here
55 LL | f
56 | ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
57
58 error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
59 --> $DIR/ref-mut-struct-async.rs:25:74
60 |
61 LL | async fn box_box_ref_Struct(self: Box<Box<&mut Struct>>, f: &u32) -> &u32 {
62 | ^^^^
63 |
64 = note: hidden type `impl std::future::Future` captures lifetime '_#15r
65
66 error: lifetime may not live long enough
67 --> $DIR/ref-mut-struct-async.rs:26:9
68 |
69 LL | async fn box_box_ref_Struct(self: Box<Box<&mut Struct>>, f: &u32) -> &u32 {
70 | -
71 | |
72 | lifetime `'_` defined here
73 | lifetime `'_` defined here
74 LL | f
75 | ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
76
77 error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
78 --> $DIR/ref-mut-struct-async.rs:29:74
79 |
80 LL | async fn box_pin_ref_Struct(self: Box<Pin<&mut Struct>>, f: &u32) -> &u32 {
81 | ^^^^
82 |
83 = note: hidden type `impl std::future::Future` captures lifetime '_#15r
84
85 error: lifetime may not live long enough
86 --> $DIR/ref-mut-struct-async.rs:30:9
87 |
88 LL | async fn box_pin_ref_Struct(self: Box<Pin<&mut Struct>>, f: &u32) -> &u32 {
89 | -
90 | |
91 | lifetime `'_` defined here
92 | lifetime `'_` defined here
93 LL | f
94 | ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
95
96 error: aborting due to 10 previous errors
97
98 For more information about this error, try `rustc --explain E0700`.