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