fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1// run-rustfix 2 3fn main() { 4 let x = "com.example.app"; 5 let y: Option<&str> = None; 6 let _s = y.unwrap_or_else(|| x.split('.').nth(1).unwrap()); 7 //~^ ERROR: mismatched types [E0308] 8}