about summary refs log tree commit diff
path: root/src/tools/rustfmt/tests
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-10-13 10:09:42 -0400
committerMichael Goulet <michael@errs.io>2024-10-15 10:22:03 -0400
commitdca646ab0107fd311427b7f7c4eea448e9f4ee9e (patch)
treea4b0119d5746da9b16b4a8e76145f9632cbb2458 /src/tools/rustfmt/tests
parentf79fae3069c449993eda6b16934da3b144cb8a66 (diff)
Rewrite for<..> async correctly
Diffstat (limited to 'src/tools/rustfmt/tests')
-rw-r--r--src/tools/rustfmt/tests/target/asyncness.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/asyncness.rs b/src/tools/rustfmt/tests/target/asyncness.rs
index d91ac960499..dd651ed6a62 100644
--- a/src/tools/rustfmt/tests/target/asyncness.rs
+++ b/src/tools/rustfmt/tests/target/asyncness.rs
@@ -1,3 +1,5 @@
 // rustfmt-edition: 2018
 
 fn foo() -> impl async Fn() {}
+
+fn bar() -> impl for<'a> async Fn(&'a ()) {}