rust/tests/target/async_closure.rs

19 lines
262 B
Rust
Raw Normal View History

2018-07-09 09:20:30 -05:00
// 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
};
}