mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-14 23:22:30 +00:00
13 lines
202 B
Rust
13 lines
202 B
Rust
#![feature(inline_const_pat)]
|
|
|
|
fn uwu() {}
|
|
|
|
fn main() {
|
|
let x = [];
|
|
match x[123] {
|
|
const { uwu } => {}
|
|
//~^ ERROR `fn() {uwu}` cannot be used in patterns
|
|
_ => {}
|
|
}
|
|
}
|