Add rustfmt test for formatting for<> before closures

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

View File

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

View File

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