2018-11-04 15:07:55 -06:00
|
|
|
#![feature(generators)]
|
|
|
|
|
2018-11-07 12:01:35 -06:00
|
|
|
// normalize-stderr-test "std::pin::Unpin" -> "std::marker::Unpin"
|
|
|
|
|
2018-11-04 15:07:55 -06:00
|
|
|
use std::marker::Unpin;
|
|
|
|
|
|
|
|
fn assert_unpin<T: Unpin>(_: T) {
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let mut generator = static || {
|
|
|
|
yield;
|
|
|
|
};
|
2020-02-12 13:51:07 -06:00
|
|
|
assert_unpin(generator); //~ ERROR E0277
|
2018-11-04 15:07:55 -06:00
|
|
|
}
|