#![deny(elided_lifetimes_in_paths)] #[cxx::bridge] mod ffi { #[derive(PartialEq, PartialOrd, Hash)] struct Struct<'a> { reference: &'a i32, } extern "Rust" { type Rust<'a>; } unsafe extern "C++" { type Cpp<'a>; fn lifetime_named<'a>(s: &'a i32) -> UniquePtr>; fn lifetime_underscore(s: &i32) -> UniquePtr>; fn lifetime_elided(s: &i32) -> UniquePtr; } } pub struct Rust<'a>(&'a i32); fn main() {}