]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/source/issue-1366.rs
Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup
[rust.git] / src / tools / rustfmt / tests / source / issue-1366.rs
1 fn main() {
2     fn f() -> Option<i32> {
3         Some("fffffffsssssssssddddssssfffffddddff").map(|s| s).map(|s| s.to_string()).map(|res| {
4             match Some(res) {
5                 Some(ref s) if s == "" => 41,
6                 Some(_) => 42,
7                 _ => 43,
8             }
9         })
10     }
11     println!("{:?}", f())
12 }