aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/unique_ptr_to_opaque.stderr
blob: 6f028f5a39b99599980247f7cbc3fdd87de3b49c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error[E0271]: type mismatch resolving `<outside::C as ExternType>::Kind == Trivial`
  --> tests/ui/unique_ptr_to_opaque.rs:22:25
   |
22 |     cxx::UniquePtr::new(outside::C { a: 4 });
   |     ------------------- ^^^^^^^^^^^^^^^^^^^ type mismatch resolving `<outside::C as ExternType>::Kind == Trivial`
   |     |
   |     required by a bound introduced by this call
   |
note: expected this to be `Trivial`
  --> tests/ui/unique_ptr_to_opaque.rs:8:21
   |
8  |         type Kind = cxx::kind::Opaque;
   |                     ^^^^^^^^^^^^^^^^^
note: required by a bound in `UniquePtr::<T>::new`
  --> src/unique_ptr.rs
   |
   |         T: ExternType<Kind = Trivial>,
   |                       ^^^^^^^^^^^^^^ required by this bound in `UniquePtr::<T>::new`