rust/rustfmt-core/tests/target/issue-1366.rs
2018-02-07 22:48:05 +09:00

14 lines
344 B
Rust

fn main() {
fn f() -> Option<i32> {
Some("fffffffsssssssssddddssssfffffddddff")
.map(|s| s)
.map(|s| s.to_string())
.map(|res| match Some(res) {
Some(ref s) if s == "" => 41,
Some(_) => 42,
_ => 43,
})
}
println!("{:?}", f())
}