]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/issue-28113.rs
Rollup merge of #81697 - xfix:every-doc-alias, r=Mark-Simulacrum
[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() {}