]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/pat-tuple-bad-type.rs
Rollup merge of #105555 - krasimirgg:llvm-int-opt-2, r=cuviper
[rust.git] / src / test / 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 }