blob: 4d2d8fb1303ce0fe877794a915417844c424b6f4 [file] [log] [blame]
#![allow(incomplete_features)]
#![feature(inline_const_pat)]
fn main() {
match () {
const { (|| {})() } => {}
//~^ ERROR cannot call non-const closure in constants
}
}