1 #![feature(adt_const_params)] 2 #![allow(incomplete_features)] 3 main()4fn main() { 5 pub struct Color<const WHITE: (fn(),)>; 6 //~^ ERROR `(fn(),)` can't be used as a const parameter type 7 8 impl<const WHITE: (fn(),)> Color<WHITE> { 9 //~^ ERROR `(fn(),)` can't be used as a const parameter type 10 pub fn new() -> Self { 11 Color::<WHITE> 12 } 13 } 14 15 pub const D65: (fn(),) = (|| {},); 16 17 Color::<D65>::new(); 18 } 19