]> git.lizzy.rs Git - rust.git/blob - tests/ui/pattern/issue-17718-patterns.rs
Auto merge of #106458 - albertlarsan68:move-tests, r=jyn514
[rust.git] / tests / ui / pattern / issue-17718-patterns.rs
1 static A1: usize = 1;
2 static mut A2: usize = 1;
3 const A3: usize = 1;
4
5 fn main() {
6     match 1 {
7         A1 => {} //~ ERROR: match bindings cannot shadow statics
8         A2 => {} //~ ERROR: match bindings cannot shadow statics
9         A3 => {}
10         _ => {}
11     }
12 }