mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 03:03:40 +00:00
13 lines
329 B
Rust
13 lines
329 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())
|
||
|
}
|