mirror of
https://github.com/topjohnwu/cxx.git
synced 2025-02-14 12:49:23 +00:00
Test a struct definition containing lifetimes and derives
This commit is contained in:
parent
bc25f11e7b
commit
62da031965
@ -80,6 +80,11 @@ pub mod ffi {
|
|||||||
a: [i32; 4],
|
a: [i32; 4],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
|
||||||
|
pub struct StructWithLifetime<'a> {
|
||||||
|
s: &'a str,
|
||||||
|
}
|
||||||
|
|
||||||
unsafe extern "C++" {
|
unsafe extern "C++" {
|
||||||
include!("tests/ffi/tests.h");
|
include!("tests/ffi/tests.h");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user