1 // Regression test for #81899.
2 // The `panic!()` below is important to trigger the fixed ICE.
4 const _CONST: &[u8] = &f(&[], |_| {});
5 //~^ ERROR any use of this value
6 //~| WARNING this was previously
8 const fn f<F>(_: &[u8], _: F) -> &[u8]
12 panic!() //~ ERROR: evaluation of constant value failed