rust/tests/ui/lint/must_not_suspend/tuple-mismatch.rs

10 lines
162 B
Rust
Raw Normal View History

#![feature(generators)]
fn main() {
let _generator = || {
yield ((), ((), ()));
yield ((), ());
//~^ ERROR mismatched types
};
}