]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/const-unit-struct.rs
Rollup merge of #106963 - compiler-errors:scope-expr-dupe, r=michaelwoerister
[rust.git] / tests / ui / consts / const-unit-struct.rs
1 // run-pass
2 // pretty-expanded FIXME #23616
3
4 struct Foo;
5
6 static X: Foo = Foo;
7
8 pub fn main() {
9     match X {
10         Foo => {}
11     }
12 }