mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-24 14:34:23 +00:00
19 lines
344 B
Rust
19 lines
344 B
Rust
// revisions: current next
|
|
//[next] compile-flags: -Ztrait-solver=next
|
|
|
|
#![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
|
|
}
|