2023-04-11 16:15:39 -05:00
|
|
|
//@ revisions: current next
|
2024-03-10 20:18:41 -05:00
|
|
|
//@ ignore-compare-mode-next-solver (explicit revisions)
|
2023-12-14 06:11:28 -06:00
|
|
|
//@[next] compile-flags: -Znext-solver
|
2023-04-11 16:15:39 -05:00
|
|
|
|
2023-10-19 16:46:28 -05:00
|
|
|
#![feature(coroutines)]
|
2018-11-04 15:07:55 -06:00
|
|
|
|
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() {
|
2023-10-19 16:46:28 -05:00
|
|
|
let mut coroutine = static || {
|
2018-11-04 15:07:55 -06:00
|
|
|
yield;
|
|
|
|
};
|
2023-10-19 16:46:28 -05:00
|
|
|
assert_unpin(coroutine); //~ ERROR E0277
|
2018-11-04 15:07:55 -06:00
|
|
|
}
|