mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-10 11:06:49 +00:00
19 lines
262 B
Rust
19 lines
262 B
Rust
![]() |
// rustfmt-edition: Edition2018
|
||
|
|
||
|
fn main() {
|
||
|
let async_closure = async {
|
||
|
let x = 3;
|
||
|
x
|
||
|
};
|
||
|
|
||
|
let f = async /* comment */ {
|
||
|
let x = 3;
|
||
|
x
|
||
|
};
|
||
|
|
||
|
let g = async /* comment */ move {
|
||
|
let x = 3;
|
||
|
x
|
||
|
};
|
||
|
}
|