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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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