]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-27033.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / issues / issue-27033.rs
1 // ignore-x86 FIXME: missing sysroot spans (#53081)
2 fn main() {
3 match Some(1) {
4 None @ _ => {} //~ ERROR match bindings cannot shadow unit variants
5 };
6 const C: u8 = 1;
7 match 1 {
8 C @ 2 => { //~ ERROR match bindings cannot shadow constant
9 println!("{}", C);
10 }
11 _ => {}
12 };
13 }