File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
#![ feature( generators) ]
2
2
3
+ // normalize-stderr-test "std::pin::Unpin" -> "std::marker::Unpin"
4
+
3
5
use std:: marker:: Unpin ;
4
6
5
7
fn assert_unpin < T : Unpin > ( _: T ) {
Original file line number Diff line number Diff line change 1
- error[E0277]: the trait bound `[static generator@$DIR/static-not-unpin.rs:9 :25: 11 :6 _]: std::marker::Unpin` is not satisfied
2
- --> $DIR/static-not-unpin.rs:12 :5
1
+ error[E0277]: the trait bound `[static generator@$DIR/static-not-unpin.rs:11 :25: 13 :6 _]: std::marker::Unpin` is not satisfied
2
+ --> $DIR/static-not-unpin.rs:14 :5
3
3
|
4
4
LL | assert_unpin(generator); //~ ERROR std::marker::Unpin` is not satisfied
5
- | ^^^^^^^^^^^^ the trait `std::marker::Unpin` is not implemented for `[static generator@$DIR/static-not-unpin.rs:9 :25: 11 :6 _]`
5
+ | ^^^^^^^^^^^^ the trait `std::marker::Unpin` is not implemented for `[static generator@$DIR/static-not-unpin.rs:11 :25: 13 :6 _]`
6
6
|
7
7
note: required by `assert_unpin`
8
- --> $DIR/static-not-unpin.rs:5 :1
8
+ --> $DIR/static-not-unpin.rs:7 :1
9
9
|
10
10
LL | fn assert_unpin<T: Unpin>(_: T) {
11
11
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
You can’t perform that action at this time.
0 commit comments