]> git.lizzy.rs Git - rust.git/blob - tests/ui/inference/issue-71309.rs
Rollup merge of #106869 - notriddle:notriddle/item-decl-pre-rust, r=GuillaumeGomez
[rust.git] / tests / ui / inference / issue-71309.rs
1 fn foo(x: Result<i32, ()>) -> Result<(), ()> {
2     let y: u32 = x?;
3     //~^ ERROR: `?` operator has incompatible types
4     Ok(())
5 }
6
7 fn main() {}