android13/external/rust/cxx/tests/ui/lifetime_extern_rust.rs

18 lines
230 B
Rust

#[cxx::bridge]
mod ffi {
extern "Rust" {
type Opaque;
fn f<'a>(&'a self, arg: &str) -> &'a str;
}
}
pub struct Opaque;
impl Opaque {
fn f(&self, _arg: &str) -> &str {
""
}
}
fn main() {}