mirror of
https://gitee.com/openharmony/third_party_rust_cxx
synced 2024-11-23 23:29:50 +00:00
Add failing test of extern enum used as struct field
Currently fails with: error[cxxbridge]: needs a cxx::ExternType impl in order to be used as a field of `Second` ┌─ lib.rs:222:9 │ 222 │ type COwnedEnum; │ ^^^^^^^^^^^^^^^ needs a cxx::ExternType impl in order to be used as a field of `Second` which is wrong because the bridge should know it's producing a compatible ExternType impl for this type.
This commit is contained in:
parent
f35a22d119
commit
468063fb69
@ -113,6 +113,7 @@ pub mod ffi {
|
||||
#[namespace = "second"]
|
||||
struct Second {
|
||||
i: i32,
|
||||
e: COwnedEnum,
|
||||
}
|
||||
|
||||
unsafe extern "C++" {
|
||||
|
Loading…
Reference in New Issue
Block a user