2022-12-21 16:32:16 +00:00
|
|
|
// gate-test-const_closures
|
2023-03-11 21:29:15 +00:00
|
|
|
|
2022-12-21 14:51:02 +00:00
|
|
|
fn main() {
|
|
|
|
(const || {})();
|
|
|
|
//~^ ERROR: const closures are experimental
|
|
|
|
}
|
2023-03-11 21:29:15 +00:00
|
|
|
|
|
|
|
macro_rules! e {
|
|
|
|
($e:expr) => {}
|
|
|
|
}
|
|
|
|
|
|
|
|
e!((const || {}));
|
|
|
|
//~^ ERROR const closures are experimental
|