mirror of
https://gitee.com/openharmony/third_party_rust_cxx
synced 2024-11-27 01:11:38 +00:00
10 lines
144 B
Rust
10 lines
144 B
Rust
|
#[cxx::bridge]
|
||
|
mod ffi {
|
||
|
extern "C++" {
|
||
|
type Opaque;
|
||
|
unsafe fn f<'a>(&'a self, arg: &str) -> &'a str;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
fn main() {}
|