fork/rust

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

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

master
821 B19 linesraw
1error[E0277]: `{static generator@$DIR/static-not-unpin.rs:14:25: 14:34}` cannot be unpinned
2  --> $DIR/static-not-unpin.rs:17:18
3   |
4LL |     assert_unpin(generator);
5   |     ------------ ^^^^^^^^^ the trait `Unpin` is not implemented for `{static generator@$DIR/static-not-unpin.rs:14:25: 14:34}`
6   |     |
7   |     required by a bound introduced by this call
8   |
9   = note: consider using the `pin!` macro
10           consider using `Box::pin` if you need to access the pinned value outside of the current scope
11note: required by a bound in `assert_unpin`
12  --> $DIR/static-not-unpin.rs:10:20
13   |
14LL | fn assert_unpin<T: Unpin>(_: T) {
15   |                    ^^^^^ required by this bound in `assert_unpin`
16
17error: aborting due to previous error
18
19For more information about this error, try `rustc --explain E0277`.