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

10 lines
162 B
Rust
Raw Normal View History

2023-10-19 16:46:28 -05:00
#![feature(coroutines)]
fn main() {
2023-10-19 16:46:28 -05:00
let _coroutine = || {
yield ((), ((), ()));
yield ((), ());
//~^ ERROR mismatched types
};
}