rust/tests/ui/generator/print/generator-print-verbose-3.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
224 B
Rust
Raw Normal View History

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