]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/issue-28113.rs
Rollup merge of #83634 - JohnTitor:proc-macro-ice, r=varkor
[rust.git] / src / test / ui / consts / issue-28113.rs
1 #![allow(warnings)]
2
3 const X: u8 =
4     || -> u8 { 5 }()
5     //~^ ERROR calls in constants are limited to constant functions
6 ;
7
8 fn main() {}