]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/issue-28113.rs
Rollup merge of #93613 - crlf0710:rename_to_async_iter, r=yaahc
[rust.git] / src / test / 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() {}