blob: c9f56df35531f81cb90a1676b064bce2486d2c90 [file] [edit]
// gate-test-const_closures
fn main() {
const { (const || {})() };
//~^ ERROR: const closures are experimental
//~| ERROR: cannot call conditionally-const closure in constants
//~| ERROR: `Fn` is not yet stable as a const trait
}
macro_rules! e {
($e:expr) => {};
}
e!((const || {}));
//~^ ERROR const closures are experimental