rust/tests/ui/rfcs/rfc-2632-const-trait-impl/gate.rs
2023-06-05 16:09:46 +00:00

14 lines
215 B
Rust

// gate-test-const_closures
fn main() {
(const || {})();
//~^ ERROR: const closures are experimental
}
macro_rules! e {
($e:expr) => {}
}
e!((const || {}));
//~^ ERROR const closures are experimental