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