Test a struct definition containing lifetimes and derives

This commit is contained in:
David Tolnay 2021-01-02 22:53:15 -08:00
parent bc25f11e7b
commit 62da031965
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -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");