blob: a4c91fafe6ca5faec1b8060ea6378b5979ee5f6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#![feature(coroutines, coroutine_trait, stmt_expr_attributes)]
use std::ops::Coroutine;
use std::pin::Pin;
fn main() {
let s = String::from("foo");
let mut gen = #[coroutine]
move || {
//~^ ERROR the size for values of type
yield s[..];
};
Pin::new(&mut gen).resume(());
//~^ ERROR the size for values of type
}
|