]> git.proxmox.com Git - rustc.git/blob - tests/ui/pattern/pat-tuple-bad-type.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / pattern / pat-tuple-bad-type.rs
1 fn main() {
2 let x; //~ ERROR type annotations needed
3
4 match x {
5 (..) => {}
6 _ => {}
7 }
8
9 match 0u8 {
10 (..) => {} //~ ERROR mismatched types
11 _ => {}
12 }
13
14 x = 10;
15 }