#![feature(const_generics)] //~^ WARN the feature `const_generics` is incomplete fn function() -> u32 { 17 } struct Wrapper u32>; //~ ERROR: using function pointers as const generic parameters impl u32> Wrapper { //~^ ERROR: using function pointers as const generic parameters fn call() -> u32 { F() } } fn main() { assert_eq!(Wrapper::::call(), 17); }