summaryrefslogtreecommitdiffstats
path: root/tests/ui/typeck/issue-92481.rs
blob: 0a6b1843d996cb488e5d029dc691b9a99777f119 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//check-fail

#![crate_type="lib"]

fn r({) {
    Ok {             //~ ERROR mismatched types [E0308]
        d..||_=m
    }
}
//~^^^^^ ERROR expected parameter name, found `{`
//~| ERROR expected one of `,`, `:`, or `}`, found `..`
//~^^^^^ ERROR cannot find value `d` in this scope [E0425]
//~| ERROR cannot find value `m` in this scope [E0425]
//~| ERROR variant `Result<_, _>::Ok` has no field named `d` [E0559]