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