mirror of
https://github.com/topjohnwu/cxx.git
synced 2025-02-12 11:31:42 +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],
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
|
||||
pub struct StructWithLifetime<'a> {
|
||||
s: &'a str,
|
||||
}
|
||||
|
||||
unsafe extern "C++" {
|
||||
include!("tests/ffi/tests.h");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user