fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
716 B19 linesraw
1error[E0277]: `PhantomPinned` cannot be unpinned
2  --> $DIR/suggest-pin-macro.rs:22:17
3   |
4LL |     dummy(test1.get_mut());
5   |                 ^^^^^^^ within `Test`, the trait `Unpin` is not implemented for `PhantomPinned`
6   |
7   = note: consider using the `pin!` macro
8           consider using `Box::pin` if you need to access the pinned value outside of the current scope
9note: required because it appears within the type `Test`
10  --> $DIR/suggest-pin-macro.rs:5:8
11   |
12LL | struct Test {
13   |        ^^^^
14note: required by a bound in `Pin::<&'a mut T>::get_mut`
15  --> $SRC_DIR/core/src/pin.rs:LL:COL
16
17error: aborting due to previous error
18
19For more information about this error, try `rustc --explain E0277`.