]> git.lizzy.rs Git - rust.git/blob - tests/ui/pattern/pat-tuple-bad-type.rs
Rollup merge of #106648 - Nilstrieb:poly-cleanup, r=compiler-errors
[rust.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 }