1 2 3 4 5 6 7 8 9 10 11 12 13
#![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 _ => {} } }