#![feature(adt_const_params)] #![allow(incomplete_features)] fn main() { pub struct Color; //~^ ERROR `(fn(),)` can't be used as a const parameter type impl Color { //~^ ERROR `(fn(),)` can't be used as a const parameter type pub fn new() -> Self { Color:: } } pub const D65: (fn(),) = (|| {},); Color::::new(); }