// Regression test for issue #80062 (fixed by `min_const_generics`) fn sof() -> T { unimplemented!() } fn test() { let _: [u8; sof::()]; //~^ ERROR generic parameters may not be used in const operations } fn main() {}