mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
16 lines
272 B
Rust
16 lines
272 B
Rust
#![feature(generators)]
|
|
|
|
// normalize-stderr-test "std::pin::Unpin" -> "std::marker::Unpin"
|
|
|
|
use std::marker::Unpin;
|
|
|
|
fn assert_unpin<T: Unpin>(_: T) {
|
|
}
|
|
|
|
fn main() {
|
|
let mut generator = static || {
|
|
yield;
|
|
};
|
|
assert_unpin(generator); //~ ERROR E0277
|
|
}
|