@@ -15,29 +15,29 @@ LL | ap
1515 | ^^ lifetime `'static` required
1616
1717error[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
1919 |
20- LL | let _ = ap.copy (|ap| { ap });
21- | ^^
20+ LL | let _ = ap.with_copy (|ap| { ap });
21+ | ^^
2222 |
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
2525 |
26- LL | let _ = ap.copy (|ap| { ap });
27- | ^^^^^^^^^^^
26+ LL | let _ = ap.with_copy (|ap| { ap });
27+ | ^^^^^^^^^^^
2828 = note: ...so that the expression is assignable:
2929 expected core::ffi::VaList<'_>
3030 found core::ffi::VaList<'_>
3131note: but, the lifetime must be valid for the method call at 16:13...
3232 --> $DIR/variadic-ffi-4.rs:16:13
3333 |
34- LL | let _ = ap.copy (|ap| { ap });
35- | ^^^^^^^^^^^^^^^^^^^^
34+ LL | let _ = ap.with_copy (|ap| { ap });
35+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
3636note: ...so type `core::ffi::VaList<'_>` of expression is valid during the expression
3737 --> $DIR/variadic-ffi-4.rs:16:13
3838 |
39- LL | let _ = ap.copy (|ap| { ap });
40- | ^^^^^^^^^^^^^^^^^^^^
39+ LL | let _ = ap.with_copy (|ap| { ap });
40+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
4141
4242error[E0308]: mismatched types
4343 --> $DIR/variadic-ffi-4.rs:20:12
0 commit comments