mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-30 12:07:40 +00:00
13 lines
165 B
Rust
13 lines
165 B
Rust
![]() |
//@ edition: 2021
|
||
|
|
||
|
macro_rules! x {
|
||
|
($x:item) => {}
|
||
|
}
|
||
|
|
||
|
x! {
|
||
|
async fn foo() -> impl async Fn() { }
|
||
|
//~^ ERROR async closures are unstable
|
||
|
}
|
||
|
|
||
|
fn main() {}
|