2015-01-08 22:02:42 +11:00
|
|
|
static A1: usize = 1;
|
|
|
|
static mut A2: usize = 1;
|
|
|
|
const A3: usize = 1;
|
2014-10-06 21:16:35 -07:00
|
|
|
|
|
|
|
fn main() {
|
2015-03-03 10:42:26 +02:00
|
|
|
match 1 {
|
2016-06-03 23:15:00 +03:00
|
|
|
A1 => {} //~ ERROR: match bindings cannot shadow statics
|
|
|
|
A2 => {} //~ ERROR: match bindings cannot shadow statics
|
2014-10-06 21:16:35 -07:00
|
|
|
A3 => {}
|
|
|
|
_ => {}
|
|
|
|
}
|
|
|
|
}
|