Open
Description
Having back-to-back match
blocks causes this problem:
fn func<F: Fn(u8) -> u8>(f: F) -> u8 {
f(0)
}
fn main() {
func(|x|
match x {
x => x,
} + match x {
x => x,
}
);
}
results in
error[internal]: left behind trailing whitespace
--> /playground/src/main.rs:6:6:13
|
6 | func(|x|
| ^
|
warning: rustfmt has failed to format. See previous 1 errors.