]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/issue-28113.rs
Rollup merge of #106951 - tmiasko:rm-simplify-initial, r=oli-obk
[rust.git] / tests / ui / consts / issue-28113.rs
1 #![allow(warnings)]
2
3 const X: u8 =
4     || -> u8 { 5 }()
5     //~^ ERROR cannot call non-const closure
6 ;
7
8 fn main() {}