Files
rust/tests/ui/inline-const/in-pat-recovery.rs

12 lines
298 B
Rust
Raw Normal View History

2025-03-14 12:47:08 +01:00
// 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 } => {}
//~^ `inline_const_pat` has been removed
2 => {}
_ => {}
}
}