mirror of
https://gitee.com/openharmony/third_party_rust_cxx
synced 2024-11-23 15:19:44 +00:00
Add ui test for type in uniqueptr expecting named lifetime
This commit is contained in:
parent
756b5b64f0
commit
16dca756b8
9
tests/ui/expected_named.rs
Normal file
9
tests/ui/expected_named.rs
Normal file
@ -0,0 +1,9 @@
|
||||
#[cxx::bridge]
|
||||
mod ffi {
|
||||
unsafe extern "C++" {
|
||||
type Borrowed<'a>;
|
||||
fn borrowed() -> UniquePtr<Borrowed>;
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {}
|
Loading…
Reference in New Issue
Block a user