blob: a46e56e3be649afe43e7d0128a39235d50c940d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// While `feature(inline_const_pat)` has been removed from the
// compiler, we should still make sure that the resulting error
// message is acceptable.
fn main() {
match 1 {
const { 1 + 7 } => {}
//~^ ERROR const blocks cannot be used as patterns
2 => {}
_ => {}
}
}
|