1 use std::marker::PhantomData; 2 3 #[cxx::bridge] 4 mod ffi { 5 extern "Rust" { 6 type T; 7 f(t: &T) -> &str8 fn f(t: &T) -> &str; 9 } 10 } 11 12 pub struct T<'a> { 13 _lifetime: PhantomData<&'a ()>, 14 } 15 f<'a>(_t: &T<'a>) -> &'a str16fn f<'a>(_t: &T<'a>) -> &'a str { 17 "" 18 } 19 main()20fn main() {} 21