rust/tests/ui/consts/issue-28113.rs
2023-07-27 15:51:02 +00:00

9 lines
117 B
Rust

#![allow(warnings)]
const X: u8 =
|| -> u8 { 5 }()
//~^ ERROR cannot call non-const closure
;
fn main() {}