blob: 8689539ec8ebb7611923d94407d39752d0531bd8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// compile-flags: -Zverbose
#![feature(generators, generator_trait)]
fn main() {
let x = "Type mismatch test";
let generator :() = || {
//~^ ERROR mismatched types
yield 1i32;
return x
};
}
|