• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error: Rust Vec containing C++ type is not supported yet
2  --> $DIR/vec_opaque.rs:15:19
3   |
415 |         fn f() -> Vec<Job>;
5   |                   ^^^^^^^^
6
7error: needs a cxx::ExternType impl in order to be used as a vector element in Vec<Job>
8  --> $DIR/vec_opaque.rs:11:9
9   |
1011 |         type Job;
11   |         ^^^^^^^^
12
13error[E0271]: type mismatch resolving `<handle::Job as ExternType>::Kind == Trivial`
14   --> $DIR/vec_opaque.rs:22:9
15    |
1622  |         type Job = crate::handle::Job;
17    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `Trivial`, found enum `cxx::kind::Opaque`
18    |
19note: required by a bound in `verify_extern_kind`
20   --> $DIR/extern_type.rs:186:41
21    |
22186 | pub fn verify_extern_kind<T: ExternType<Kind = Kind>, Kind: self::Kind>() {}
23    |                                         ^^^^^^^^^^^ required by this bound in `verify_extern_kind`
24