1 // Regression test for issue 88434
3 const _CONST: &[u8] = &f(&[], |_| {});
4 //~^ ERROR any use of this value will cause an error
5 //~| WARNING this was previously
7 const fn f<F>(_: &[u8], _: F) -> &[u8]
11 panic!() //~ ERROR evaluation of constant value failed