File: rust_pinned.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 (18 lines) | stat: -rw-r--r-- 693 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error[E0277]: `PhantomPinned` cannot be unpinned
  --> tests/ui/rust_pinned.rs:6:14
   |
6  |         type Pinned;
   |              ^^^^^^ within `Pinned`, the trait `Unpin` is not implemented for `PhantomPinned`
   |
   = note: consider using the `pin!` macro
           consider using `Box::pin` if you need to access the pinned value outside of the current scope
note: required because it appears within the type `Pinned`
  --> tests/ui/rust_pinned.rs:10:12
   |
10 | pub struct Pinned {
   |            ^^^^^^
note: required by a bound in `__AssertUnpin`
  --> tests/ui/rust_pinned.rs:6:9
   |
6  |         type Pinned;
   |         ^^^^^^^^^^^^ required by this bound in `__AssertUnpin`