]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/issue-1366.rs
Auto merge of #95315 - compiler-errors:pointee-fix, r=pnkfelix
[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 }