@@ -37,11 +37,11 @@ error: lifetime may not live long enough
37
37
--> $DIR/variadic-ffi-4.rs:20:5
38
38
|
39
39
LL | pub unsafe extern "C" fn no_escape3(_: usize, mut ap0: &mut VaListImpl, mut ap1: ...) {
40
- | ------- ------- has type `core::ffi::VaListImpl<'1 >`
40
+ | ------- ------- has type `core::ffi::VaListImpl<'2 >`
41
41
| |
42
- | has type `&mut core::ffi::VaListImpl<'2 >`
42
+ | has type `&mut core::ffi::VaListImpl<'1 >`
43
43
LL | *ap0 = ap1;
44
- | ^^^^ assignment requires that `'1 ` must outlive `'2 `
44
+ | ^^^^ assignment requires that `'2 ` must outlive `'1 `
45
45
46
46
error: lifetime may not live long enough
47
47
--> $DIR/variadic-ffi-4.rs:25:5
@@ -57,11 +57,11 @@ error: lifetime may not live long enough
57
57
--> $DIR/variadic-ffi-4.rs:25:5
58
58
|
59
59
LL | pub unsafe extern "C" fn no_escape4(_: usize, ap0: &mut VaListImpl, mut ap1: ...) {
60
- | --- ------- has type `core::ffi::VaListImpl<'1 >`
60
+ | --- ------- has type `core::ffi::VaListImpl<'2 >`
61
61
| |
62
- | has type `&mut core::ffi::VaListImpl<'2 >`
62
+ | has type `&mut core::ffi::VaListImpl<'1 >`
63
63
LL | ap0 = &mut ap1;
64
- | ^^^^^^^^^^^^^^ assignment requires that `'1 ` must outlive `'2 `
64
+ | ^^^^^^^^^^^^^^ assignment requires that `'2 ` must outlive `'1 `
65
65
66
66
error[E0384]: cannot assign to immutable argument `ap0`
67
67
--> $DIR/variadic-ffi-4.rs:25:5
@@ -99,11 +99,11 @@ error: lifetime may not live long enough
99
99
--> $DIR/variadic-ffi-4.rs:33:12
100
100
|
101
101
LL | pub unsafe extern "C" fn no_escape5(_: usize, mut ap0: &mut VaListImpl, mut ap1: ...) {
102
- | ------- ------- has type `core::ffi::VaListImpl<'1 >`
102
+ | ------- ------- has type `core::ffi::VaListImpl<'2 >`
103
103
| |
104
- | has type `&mut core::ffi::VaListImpl<'2 >`
104
+ | has type `&mut core::ffi::VaListImpl<'1 >`
105
105
LL | *ap0 = ap1.clone();
106
- | ^^^^^^^^^^^ argument requires that `'1 ` must outlive `'2 `
106
+ | ^^^^^^^^^^^ argument requires that `'2 ` must outlive `'1 `
107
107
108
108
error: aborting due to 11 previous errors
109
109
0 commit comments