Add rustfmt test for formatting for<> before closures

This commit is contained in:
Maybe Waffle 2022-07-03 16:11:46 +04:00
parent b504a18563
commit 30a3673478
2 changed files with 16 additions and 0 deletions

View File

@ -51,6 +51,16 @@ fn main() {
"--emit=dep-info" "--emit=dep-info"
} else { a } } else { a }
}); });
for<> || -> () {};
for< >|| -> () {};
for<
> || -> () {};
for< 'a
,'b,
'c > |_: &'a (), _: &'b (), _: &'c ()| -> () {};
} }
fn issue311() { fn issue311() {

View File

@ -71,6 +71,12 @@ fn main() {
a a
} }
}); });
for<> || -> () {};
for<> || -> () {};
for<> || -> () {};
for<'a, 'b, 'c> |_: &'a (), _: &'b (), _: &'c ()| -> () {};
} }
fn issue311() { fn issue311() {