2018-09-06 14:41:12 +02:00
|
|
|
//@ run-pass
|
|
|
|
|
2024-04-11 13:15:34 +00:00
|
|
|
#![feature(coroutines, stmt_expr_attributes)]
|
2017-07-14 19:11:21 -04:00
|
|
|
|
2017-09-03 12:43:05 +02:00
|
|
|
fn main() {
|
2024-04-11 13:15:34 +00:00
|
|
|
let _a = #[coroutine] || {
|
2017-09-03 12:43:05 +02:00
|
|
|
yield;
|
|
|
|
let a = String::new();
|
|
|
|
a.len()
|
2017-07-15 21:28:42 +02:00
|
|
|
};
|
2017-12-30 02:25:40 +08:00
|
|
|
}
|