rust/tests/ui/coroutine/print/coroutine-print-verbose-3.rs
2024-02-16 20:02:50 +00:00

13 lines
235 B
Rust

//@ compile-flags: -Zverbose-internals
#![feature(coroutines, coroutine_trait)]
fn main() {
let x = "Type mismatch test";
let coroutine :() = || {
//~^ ERROR mismatched types
yield 1i32;
return x
};
}