fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
198 B8 linesraw
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}