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