blob: 448c7100df6570b9e48d6b1820e6d646b3e926a8 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
 | #![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() { }
 |