File tree 4 files changed +11
-10
lines changed
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
3
3
|
4
4
LL | 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}`
6
6
| |
7
7
| required by a bound introduced by this call
8
8
|
9
9
= note: consider using the `pin!` macro
10
10
consider using `Box::pin` if you need to access the pinned value outside of the current scope
11
11
note: required by a bound in `assert_unpin`
12
- --> $DIR/static-not-unpin.rs:11 :20
12
+ --> $DIR/static-not-unpin.rs:12 :20
13
13
|
14
14
LL | fn assert_unpin<T: Unpin>(_: T) {}
15
15
| ^^^^^ 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
3
3
|
4
4
LL | 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}`
6
6
| |
7
7
| required by a bound introduced by this call
8
8
|
9
9
= note: consider using the `pin!` macro
10
10
consider using `Box::pin` if you need to access the pinned value outside of the current scope
11
11
note: required by a bound in `assert_unpin`
12
- --> $DIR/static-not-unpin.rs:11 :20
12
+ --> $DIR/static-not-unpin.rs:12 :20
13
13
|
14
14
LL | fn assert_unpin<T: Unpin>(_: T) {}
15
15
| ^^^^^ required by this bound in `assert_unpin`
Original file line number Diff line number Diff line change 1
1
//@ revisions: current next
2
2
//@ 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
4
5
5
6
#![ feature( coroutines, stmt_expr_attributes) ]
6
7
Original file line number Diff line number Diff line change 1
- //@ compile-flags: -Znext-solver
1
+ //@ compile-flags: -Znext-solver --diagnostic-width=300
2
2
//@ edition: 2021
3
3
//@ revisions: pass fail
4
4
//@[pass] check-pass
You can’t perform that action at this time.
0 commit comments