1 #[cxx::bridge] 2 mod ffi { 3 extern "Rust" { 4 type Opaque; f<'a>(&'a self, arg: &str) -> &'a str5 fn f<'a>(&'a self, arg: &str) -> &'a str; 6 } 7 } 8 9 pub struct Opaque; 10 11 impl Opaque { f(&self, _arg: &str) -> &str12 fn f(&self, _arg: &str) -> &str { 13 "" 14 } 15 } 16 main()17fn main() {} 18