]> git.lizzy.rs Git - rust.git/blob - src/test/ui/match/match-unresolved-one-arm.rs
Auto merge of #106349 - LeSeulArtichaut:dyn-star-tracking-issue, r=jackh726
[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 }