rust/tests/ui/lint/must_not_suspend/tuple-mismatch.rs
2023-01-11 09:32:08 +00:00

10 lines
162 B
Rust

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