File: pin_mut_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 (35 lines) | stat: -rw-r--r-- 1,190 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
error: mutable reference to C++ type requires a pin -- use Pin<&mut Opaque>
 --> tests/ui/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>
 --> tests/ui/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<...>>
 --> tests/ui/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`
 --> tests/ui/pin_mut_opaque.rs:4:9
  |
4 |         type Opaque;
  |         ^^^^^^^^^^^

error: mutable reference to opaque C++ type requires a pin -- use `self: Pin<&mut Opaque>`
 --> tests/ui/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>`
 --> tests/ui/pin_mut_opaque.rs:7:20
  |
7 |         fn h(self: &mut Opaque);
  |                    ^^^^^^^^^^^