blob: a23819a20f9aa0494177749319cc33af8b08e5ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
fn main() {
match Some(1) {
None @ _ => {} //~ ERROR match bindings cannot shadow unit variants
};
const C: u8 = 1;
match 1 {
C @ 2 => { //~ ERROR match bindings cannot shadow constant
println!("{}", C);
}
_ => {}
};
}
|