Add rustfmt test for formatting for<>
before closures
This commit is contained in:
parent
b504a18563
commit
30a3673478
@ -51,6 +51,16 @@ fn main() {
|
||||
"--emit=dep-info"
|
||||
} else { a }
|
||||
});
|
||||
|
||||
for<> || -> () {};
|
||||
for< >|| -> () {};
|
||||
for<
|
||||
> || -> () {};
|
||||
|
||||
for< 'a
|
||||
,'b,
|
||||
'c > |_: &'a (), _: &'b (), _: &'c ()| -> () {};
|
||||
|
||||
}
|
||||
|
||||
fn issue311() {
|
||||
|
@ -71,6 +71,12 @@ fn main() {
|
||||
a
|
||||
}
|
||||
});
|
||||
|
||||
for<> || -> () {};
|
||||
for<> || -> () {};
|
||||
for<> || -> () {};
|
||||
|
||||
for<'a, 'b, 'c> |_: &'a (), _: &'b (), _: &'c ()| -> () {};
|
||||
}
|
||||
|
||||
fn issue311() {
|
||||
|
Loading…
Reference in New Issue
Block a user