rust/tests/ui/coroutine/arg-count-mismatch-on-unit-input.rs
2024-09-25 08:45:40 +00:00

12 lines
224 B
Rust

#![feature(coroutines, coroutine_trait, stmt_expr_attributes)]
use std::ops::Coroutine;
fn foo() -> impl Coroutine<u8> {
//~^ ERROR type mismatch in coroutine arguments
#[coroutine]
|_: ()| {}
}
fn main() { }