rust/tests/ui/issues/issue-34047.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
139 B
Rust
Raw Normal View History

const C: u8 = 0;
2016-06-03 20:15:00 +00:00
fn main() {
match 1u8 {
mut C => {} //~ ERROR match bindings cannot shadow constants
_ => {}
}
}