]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-27033.rs
Merge commit '97e504549371d7640cf011d266e3c17394fdddac' into sync_cg_clif-2021-12-20
[rust.git] / src / test / ui / issues / issue-27033.rs
1 fn main() {
2     match Some(1) {
3         None @ _ => {} //~ ERROR match bindings cannot shadow unit variants
4     };
5     const C: u8 = 1;
6     match 1 {
7         C @ 2 => { //~ ERROR match bindings cannot shadow constant
8             println!("{}", C);
9         }
10         _ => {}
11     };
12 }