blob: 3de51a084d260f39458ce22ee1fe72d39b8abe6b [file] [log] [blame]
// rustfmt-edition: 2018
fn main() {
let x = async {
Ok(())
};
}
fn baz() {
// test
let x = async {
// async blocks are great
Ok(())
};
let y = async {
Ok(())
}; // comment
spawn(
a,
async move {
action();
Ok(())
},
);
spawn(
a,
async move || {
action();
Ok(())
},
);
}