]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-tuple-struct.rs
Rollup merge of #64603 - gilescope:unused-lifetime-warning, r=matthewjasper
[rust.git] / src / test / ui / consts / const-tuple-struct.rs
1 // run-pass
2
3 struct Bar(isize, isize);
4
5 static X: Bar = Bar(1, 2);
6
7 pub fn main() {
8     match X {
9         Bar(x, y) => {
10             assert_eq!(x, 1);
11             assert_eq!(y, 2);
12         }
13     }
14 }