File tree Expand file tree Collapse file tree 4 files changed +11
-10
lines changed Expand file tree Collapse file tree 4 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 1- error[E0277]: `{static coroutine@$DIR/static-not-unpin.rs:15 :5: 15 :14}` cannot be unpinned
2- --> $DIR/static-not-unpin.rs:18 :18
1+ error[E0277]: `{static coroutine@$DIR/static-not-unpin.rs:16 :5: 16 :14}` cannot be unpinned
2+ --> $DIR/static-not-unpin.rs:19 :18
33 |
44LL | assert_unpin(coroutine);
5- | ------------ ^^^^^^^^^ the trait `Unpin` is not implemented for `{static coroutine@$DIR/static-not-unpin.rs:15 :5: 15 :14}`
5+ | ------------ ^^^^^^^^^ the trait `Unpin` is not implemented for `{static coroutine@$DIR/static-not-unpin.rs:16 :5: 16 :14}`
66 | |
77 | required by a bound introduced by this call
88 |
99 = note: consider using the `pin!` macro
1010 consider using `Box::pin` if you need to access the pinned value outside of the current scope
1111note: required by a bound in `assert_unpin`
12- --> $DIR/static-not-unpin.rs:11 :20
12+ --> $DIR/static-not-unpin.rs:12 :20
1313 |
1414LL | fn assert_unpin<T: Unpin>(_: T) {}
1515 | ^^^^^ required by this bound in `assert_unpin`
Original file line number Diff line number Diff line change 1- error[E0277]: `{static coroutine@$DIR/static-not-unpin.rs:15 :5: 15 :14}` cannot be unpinned
2- --> $DIR/static-not-unpin.rs:18 :18
1+ error[E0277]: `{static coroutine@$DIR/static-not-unpin.rs:16 :5: 16 :14}` cannot be unpinned
2+ --> $DIR/static-not-unpin.rs:19 :18
33 |
44LL | assert_unpin(coroutine);
5- | ------------ ^^^^^^^^^ the trait `Unpin` is not implemented for `{static coroutine@$DIR/static-not-unpin.rs:15 :5: 15 :14}`
5+ | ------------ ^^^^^^^^^ the trait `Unpin` is not implemented for `{static coroutine@$DIR/static-not-unpin.rs:16 :5: 16 :14}`
66 | |
77 | required by a bound introduced by this call
88 |
99 = note: consider using the `pin!` macro
1010 consider using `Box::pin` if you need to access the pinned value outside of the current scope
1111note: required by a bound in `assert_unpin`
12- --> $DIR/static-not-unpin.rs:11 :20
12+ --> $DIR/static-not-unpin.rs:12 :20
1313 |
1414LL | fn assert_unpin<T: Unpin>(_: T) {}
1515 | ^^^^^ required by this bound in `assert_unpin`
Original file line number Diff line number Diff line change 11//@ revisions: current next
22//@ ignore-compare-mode-next-solver (explicit revisions)
3- //@[next] compile-flags: -Znext-solver
3+ //@[next] compile-flags: -Znext-solver --diagnostic-width=300
4+ //@[current] compile-flags: --diagnostic-width=300
45
56#![ feature( coroutines, stmt_expr_attributes) ]
67
Original file line number Diff line number Diff line change 1- //@ compile-flags: -Znext-solver
1+ //@ compile-flags: -Znext-solver --diagnostic-width=300
22//@ edition: 2021
33//@ revisions: pass fail
44//@[pass] check-pass
You can’t perform that action at this time.
0 commit comments