blob: d4ca622e80f53d76d97e0d90b2ec8a6a835603cb [file] [log] [blame]
#![feature(coroutines, coroutine_trait)]
use std::ops::Coroutine;
fn foo() -> impl Coroutine<Return = i32> {
//~^ ERROR type mismatch
|| {
if false {
return Ok(6);
}
yield ();
5 //~ ERROR mismatched types [E0308]
}
}
fn main() {}