blob: 1368c88b5227d87b26fecae1421d93013838d568 [file] [log] [blame]
#![feature(coroutines, coroutine_trait)]
use std::ops::Coroutine;
use std::pin::Pin;
fn main() {
let s = String::from("foo");
let mut gen = move || {
//~^ ERROR the size for values of type
yield s[..];
};
Pin::new(&mut gen).resume(());
//~^ ERROR the size for values of type
}