summaryrefslogtreecommitdiffstats
path: root/tests/rust/lifetime_arg.rs
blob: b80fde2fae608c12acd402ab63572d8ef6cdef92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[repr(C)]
struct A<'a> {
    data: &'a i32
}

#[repr(C)]
enum E<'a> {
    V,
    U(&'a u8),
}

#[no_mangle]
pub extern "C" fn root<'a>(_a: A<'a>, _e: E<'a>)
{ }