diff options
Diffstat (limited to 'src/tools/rustfmt/tests/source/issue-3508.rs')
-rw-r--r-- | src/tools/rustfmt/tests/source/issue-3508.rs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/source/issue-3508.rs b/src/tools/rustfmt/tests/source/issue-3508.rs new file mode 100644 index 000000000..821e947c7 --- /dev/null +++ b/src/tools/rustfmt/tests/source/issue-3508.rs @@ -0,0 +1,29 @@ +fn foo<F>(foo2: F) +where + F: Fn( + // this comment is deleted +), +{ +} + +fn foo_block<F>(foo2: F) +where + F: Fn( + /* this comment is deleted */ + ), +{ +} + +fn bar( + bar2: impl Fn( + // this comment is deleted + ), +) { +} + +fn bar_block( + bar2: impl Fn( + /* this comment is deleted */ + ), +) { +} |