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