about summary refs log tree commit diff
path: root/tests/rustdoc-ui/error-in-impl-trait/closure.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc-ui/error-in-impl-trait/closure.rs')
-rw-r--r--tests/rustdoc-ui/error-in-impl-trait/closure.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/error-in-impl-trait/closure.rs b/tests/rustdoc-ui/error-in-impl-trait/closure.rs
new file mode 100644
index 00000000000..f1fd85bb23c
--- /dev/null
+++ b/tests/rustdoc-ui/error-in-impl-trait/closure.rs
@@ -0,0 +1,5 @@
+// check-pass
+// manually desugared version of an `async fn` (but with a closure instead of a generator)
+pub fn a() -> impl Fn() -> u32 {
+    || content::doesnt::matter()
+}