982b49494e
This is to make the diff when stabilizing it easier to review.
26 lines
420 B
Rust
26 lines
420 B
Rust
// ignore-test This is currently broken
|
|
|
|
#![allow(incomplete_features)]
|
|
#![feature(inline_const_pat)]
|
|
|
|
const unsafe fn require_unsafe() -> usize {
|
|
1
|
|
}
|
|
|
|
fn main() {
|
|
match () {
|
|
const {
|
|
require_unsafe();
|
|
//~^ ERROR [E0133]
|
|
} => (),
|
|
}
|
|
|
|
match 1 {
|
|
const {
|
|
require_unsafe()
|
|
//~^ ERROR [E0133]
|
|
}..=4 => (),
|
|
_ => (),
|
|
}
|
|
}
|