Add a test for async closures

This commit is contained in:
Seiichi Uchida 2018-07-09 23:20:30 +09:00
parent 276a768eb2
commit 25f83b14c7

View File

@ -0,0 +1,18 @@
// 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
};
}