aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/vec_opaque.stderr
blob: 3f208fec04661c9f8fdfedbe02822f36117fa2d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
error: Rust Vec containing C++ type is not supported yet
  --> $DIR/vec_opaque.rs:15:19
   |
15 |         fn f() -> Vec<Job>;
   |                   ^^^^^^^^

error: needs a cxx::ExternType impl in order to be used as a vector element in Vec<Job>
  --> $DIR/vec_opaque.rs:11:9
   |
11 |         type Job;
   |         ^^^^^^^^

error[E0271]: type mismatch resolving `<handle::Job as ExternType>::Kind == Trivial`
   --> $DIR/vec_opaque.rs:22:9
    |
22  |         type Job = crate::handle::Job;
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `Trivial`, found enum `cxx::kind::Opaque`
    |
note: required by a bound in `verify_extern_kind`
   --> $DIR/extern_type.rs:186:41
    |
186 | pub fn verify_extern_kind<T: ExternType<Kind = Kind>, Kind: self::Kind>() {}
    |                                         ^^^^^^^^^^^ required by this bound in `verify_extern_kind`