Add rustfmt test for formatting for<>
before closures
This commit is contained in:
parent
2964d0a533
commit
f026688c2a
@ -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