summaryrefslogtreecommitdiffstats
path: root/tests/ui/type/type-check/issue-116967-cannot-coerce-returned-result.rs
blob: adf3049b4bab96793869ec2f4e2ed779c1f9a009 (plain)
1
2
3
4
5
6
fn foo() -> Result<String, ()> {
    let out: Result<(), ()> = Ok(());
    out //~ ERROR mismatched types
}

fn main() {}