@@ -15,29 +15,29 @@ LL | ap
15
15
| ^^ lifetime `'static` required
16
16
17
17
error[E0495]: cannot infer an appropriate lifetime due to conflicting requirements
18
- --> $DIR/variadic-ffi-4.rs:16:28
18
+ --> $DIR/variadic-ffi-4.rs:16:33
19
19
|
20
- LL | let _ = ap.copy (|ap| { ap });
21
- | ^^
20
+ LL | let _ = ap.with_copy (|ap| { ap });
21
+ | ^^
22
22
|
23
- note: first, the lifetime cannot outlive the anonymous lifetime #2 defined on the body at 16:21 ...
24
- --> $DIR/variadic-ffi-4.rs:16:21
23
+ note: first, the lifetime cannot outlive the anonymous lifetime #2 defined on the body at 16:26 ...
24
+ --> $DIR/variadic-ffi-4.rs:16:26
25
25
|
26
- LL | let _ = ap.copy (|ap| { ap });
27
- | ^^^^^^^^^^^
26
+ LL | let _ = ap.with_copy (|ap| { ap });
27
+ | ^^^^^^^^^^^
28
28
= note: ...so that the expression is assignable:
29
29
expected core::ffi::VaList<'_>
30
30
found core::ffi::VaList<'_>
31
31
note: but, the lifetime must be valid for the method call at 16:13...
32
32
--> $DIR/variadic-ffi-4.rs:16:13
33
33
|
34
- LL | let _ = ap.copy (|ap| { ap });
35
- | ^^^^^^^^^^^^^^^^^^^^
34
+ LL | let _ = ap.with_copy (|ap| { ap });
35
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
36
36
note: ...so type `core::ffi::VaList<'_>` of expression is valid during the expression
37
37
--> $DIR/variadic-ffi-4.rs:16:13
38
38
|
39
- LL | let _ = ap.copy (|ap| { ap });
40
- | ^^^^^^^^^^^^^^^^^^^^
39
+ LL | let _ = ap.with_copy (|ap| { ap });
40
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
41
41
42
42
error[E0308]: mismatched types
43
43
--> $DIR/variadic-ffi-4.rs:20:12
0 commit comments