summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfc-2632-const-trait-impl/gate.rs
blob: d1c93ab9f95af42c09cc1fc2da0160d713e0f7a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// gate-test-const_closures

fn main() {
    (const || {})();
    //~^ ERROR: const closures are experimental
}

macro_rules! e {
    ($e:expr) => {}
}

e!((const || {}));
//~^ ERROR const closures are experimental