File: unique_ptr_to_opaque.stderr

package info (click to toggle)
rust-cxx 1.0.141-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,632 kB
  • sloc: cpp: 1,573; javascript: 124; sh: 11; makefile: 8
file content (21 lines) | stat: -rw-r--r-- 862 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
error[E0271]: type mismatch resolving `<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 `<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
   |
   |     pub fn new(value: T) -> Self
   |            --- required by a bound in this associated function
   |     where
   |         T: ExternType<Kind = Trivial>,
   |                       ^^^^^^^^^^^^^^ required by this bound in `UniquePtr::<T>::new`