mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 03:03:40 +00:00
14 lines
257 B
Rust
14 lines
257 B
Rust
#![feature(inline_const_pat)]
|
|
//~^ WARN the feature `inline_const_pat` is incomplete
|
|
|
|
fn uwu() {}
|
|
|
|
fn main() {
|
|
let x = [];
|
|
match x[123] {
|
|
const { uwu } => {}
|
|
//~^ ERROR `fn() {uwu}` cannot be used in patterns
|
|
_ => {}
|
|
}
|
|
}
|