blob: f27183d11db4972ac4eb987343e8f74d6a4df001 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// revisions: current next
//[next] compile-flags: -Znext-solver
#![feature(coroutines)]
// normalize-stderr-test "std::pin::Unpin" -> "std::marker::Unpin"
use std::marker::Unpin;
fn assert_unpin<T: Unpin>(_: T) {
}
fn main() {
let mut coroutine = static || {
yield;
};
assert_unpin(coroutine); //~ ERROR E0277
}
|