2020-02-28 15:00:20 -06:00
|
|
|
// Regression test for #5238 / https://github.com/rust-lang/rust/pull/69562
|
|
|
|
|
2024-04-11 08:15:34 -05:00
|
|
|
#![feature(coroutines, coroutine_trait, stmt_expr_attributes)]
|
2020-02-28 15:00:20 -06:00
|
|
|
|
|
|
|
fn main() {
|
2024-05-02 07:21:00 -05:00
|
|
|
let _ = #[coroutine]
|
|
|
|
|| {
|
2020-02-28 15:00:20 -06:00
|
|
|
yield;
|
|
|
|
};
|
|
|
|
}
|