]> git.lizzy.rs Git - rust.git/blob - tests/ui/match/match-unresolved-one-arm.rs
Rollup merge of #106605 - notriddle:notriddle/outdated-rustbook, r=GuillaumeGomez
[rust.git] / tests / 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 }