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

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

fn main() {}