about summary refs log tree commit diff
path: root/tests/ui/traits/const-traits/issue-102985.rs
blob: ebab6566d4b579150f61534052885956438e9f63 (plain)
1
2
3
4
5
6
7
8
9
10
#![feature(const_trait_impl)]

struct Bug {
    inner: [(); match || 1 {
        n => n(),
        //~^ ERROR cannot call non-const closure in constants
    }],
}

fn main() {}