summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-1366.rs
blob: eee147baab95ac2909fcc3b7d96117072fbad503 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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())
}