2020-09-10 22:41:02 -05:00
|
|
|
// compile-flags: -Zverbose
|
|
|
|
|
2023-10-19 16:46:28 -05:00
|
|
|
#![feature(coroutines, coroutine_trait)]
|
2020-09-10 22:41:02 -05:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let x = "Type mismatch test";
|
2023-10-19 16:46:28 -05:00
|
|
|
let coroutine :() = || {
|
2020-09-10 22:41:02 -05:00
|
|
|
//~^ ERROR mismatched types
|
|
|
|
yield 1i32;
|
|
|
|
return x
|
|
|
|
};
|
|
|
|
}
|