File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 11#![ feature( generators) ]
22
3+ // normalize-stderr-test "std::pin::Unpin" -> "std::marker::Unpin"
4+
35use std:: marker:: Unpin ;
46
57fn 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
33 |
44LL | 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 _]`
66 |
77note: required by `assert_unpin`
8- --> $DIR/static-not-unpin.rs:5 :1
8+ --> $DIR/static-not-unpin.rs:7 :1
99 |
1010LL | fn assert_unpin<T: Unpin>(_: T) {
1111 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
You can’t perform that action at this time.
0 commit comments