rust/tests/ui/type/type-check/issue-116967-cannot-coerce-...

7 lines
122 B
Rust

fn foo() -> Result<String, ()> {
let out: Result<(), ()> = Ok(());
out //~ ERROR mismatched types
}
fn main() {}