mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
12 lines
224 B
Rust
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() { }
|