]> git.proxmox.com Git - rustc.git/blame - tests/ui/generator/static-not-unpin.current.stderr
New upstream version 1.70.0+dfsg1
[rustc.git] / tests / ui / generator / static-not-unpin.current.stderr
CommitLineData
353b0b11
FG
1error[E0277]: `[static generator@$DIR/static-not-unpin.rs:14:25: 14:34]` cannot be unpinned
2 --> $DIR/static-not-unpin.rs:17:18
9fa01778 3 |
e1599b0c 4LL | assert_unpin(generator);
353b0b11 5 | ------------ ^^^^^^^^^ the trait `Unpin` is not implemented for `[static generator@$DIR/static-not-unpin.rs:14:25: 14:34]`
c295e0f8
XL
6 | |
7 | required by a bound introduced by this call
cdc7bbd5 8 |
353b0b11
FG
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
94222f64 11note: required by a bound in `assert_unpin`
353b0b11 12 --> $DIR/static-not-unpin.rs:10:20
94222f64
XL
13 |
14LL | fn assert_unpin<T: Unpin>(_: T) {
15 | ^^^^^ required by this bound in `assert_unpin`
9fa01778
XL
16
17error: aborting due to previous error
18
19For more information about this error, try `rustc --explain E0277`.