chromium/third_party/rust/chromium_crates_io/vendor/cxx-1.0.126/tests/ui/lifetime_extern_rust.rs

#[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() {}