summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/issue-28113.rs
blob: f8131c9f3b717107d5d2530b29490d79adfdc163 (plain)
1
2
3
4
5
6
7
8
#![allow(warnings)]

const X: u8 =
    || -> u8 { 5 }()
    //~^ ERROR cannot call non-const closure
;

fn main() {}