Add test for async closure types.

(rebased onto 6dfd8ae)
This commit is contained in:
Zachary S 2022-08-07 00:02:25 -05:00 committed by Lukas Wirth
parent 6746a08b44
commit af175ddcdc
2 changed files with 41 additions and 1 deletions

View file

@ -386,7 +386,7 @@ impl<'a> Printer<'a> {
self.print_type_ref(ret_ty);
}
(None, ClosureKind::Async) => {
w!(self, " -> impl Future<Output = {{unknown}}>"); // FIXME(zachs18): {unknown} or ()?
w!(self, " -> impl Future<Output = {{unknown}}>");
}
(None, _) => {}
}