]> git.lizzy.rs Git - rust.git/blob - src/test/ui/match/match-unresolved-one-arm.rs
Rollup merge of #88313 - jyn514:pre-push, r=Mark-Simulacrum
[rust.git] / src / test / ui / match / match-unresolved-one-arm.rs
1 fn foo<T>() -> T { panic!("Rocks for my pillow") }
2
3 fn main() {
4     let x = match () { //~ ERROR type annotations needed
5         () => foo() // T here should be unresolved
6     };
7 }