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