fwd/vendor/cxx/tests/ui/lifetime_extern_rust.rs
John Doty 9c435dc440 Vendor dependencies
Let's see how I like this workflow.
2022-12-19 08:38:22 -08:00

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