You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.1 KiB
36 lines
1.1 KiB
error: mutable reference to C++ type requires a pin -- use Pin<&mut Opaque>
|
|
--> $DIR/pin_mut_opaque.rs:5:19
|
|
|
|
|
5 | fn f(arg: &mut Opaque);
|
|
| ^^^^^^^^^^^
|
|
|
|
error: mutable reference to C++ type requires a pin -- use Pin<&mut CxxString>
|
|
--> $DIR/pin_mut_opaque.rs:8:17
|
|
|
|
|
8 | fn s(s: &mut CxxString);
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
error: mutable reference to C++ type requires a pin -- use Pin<&mut CxxVector<...>>
|
|
--> $DIR/pin_mut_opaque.rs:9:17
|
|
|
|
|
9 | fn v(v: &mut CxxVector<u8>);
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
error: needs a cxx::ExternType impl in order to be used as a non-pinned mutable reference in signature of `f`, `g`, `h`
|
|
--> $DIR/pin_mut_opaque.rs:4:9
|
|
|
|
|
4 | type Opaque;
|
|
| ^^^^^^^^^^^
|
|
|
|
error: mutable reference to opaque C++ type requires a pin -- use `self: Pin<&mut Opaque>`
|
|
--> $DIR/pin_mut_opaque.rs:6:14
|
|
|
|
|
6 | fn g(&mut self);
|
|
| ^^^^^^^^^
|
|
|
|
error: mutable reference to opaque C++ type requires a pin -- use `self: Pin<&mut Opaque>`
|
|
--> $DIR/pin_mut_opaque.rs:7:20
|
|
|
|
|
7 | fn h(self: &mut Opaque);
|
|
| ^^^^^^^^^^^
|