rust/tests/ui/rfcs/rfc-2632-const-trait-impl/gate.rs

14 lines
215 B
Rust
Raw Normal View History

2022-12-21 10:32:16 -06:00
// gate-test-const_closures
2022-12-21 08:51:02 -06:00
fn main() {
(const || {})();
//~^ ERROR: const closures are experimental
}
macro_rules! e {
($e:expr) => {}
}
e!((const || {}));
//~^ ERROR const closures are experimental