]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/issue-92481.rs
Auto merge of #104334 - compiler-errors:ufcs-sugg-wrong-def-id, r=estebank
[rust.git] / src / test / ui / typeck / issue-92481.rs
1 //check-fail
2
3 #![crate_type="lib"]
4
5 fn r({) {
6     Ok {             //~ ERROR mismatched types [E0308]
7         d..||_=m
8     }
9 }
10 //~^^^^^ ERROR expected parameter name, found `{`
11 //~| ERROR expected one of `,`, `:`, or `}`, found `..`
12 //~^^^^^ ERROR cannot find value `d` in this scope [E0425]
13 //~| ERROR cannot find value `m` in this scope [E0425]
14 //~| ERROR variant `Result<_, _>::Ok` has no field named `d` [E0559]