blob: 35083931204712e43a3ab6dc5bc10c879ee7ed1a [file]
//! Regression test for <https://github.com/rust-lang/rust/issues/139570>.
//! A coroutine with too many parameters should emit errors without an ICE.
#![feature(coroutines)]
fn main() {
#[coroutine]
|(1, 42), ()| {
//~^ ERROR too many parameters for a coroutine
//~| ERROR refutable pattern in closure argument
yield
};
}