2021-09-08 20:30:22 -05:00
|
|
|
// Regression test for issue 88434
|
|
|
|
|
|
|
|
const _CONST: &[u8] = &f(&[], |_| {});
|
2022-11-15 05:06:20 -06:00
|
|
|
//~^ constant
|
2021-09-08 20:30:22 -05:00
|
|
|
|
|
|
|
const fn f<F>(_: &[u8], _: F) -> &[u8]
|
|
|
|
where
|
|
|
|
F: FnMut(&u8),
|
|
|
|
{
|
|
|
|
panic!() //~ ERROR evaluation of constant value failed
|
2022-11-15 05:06:20 -06:00
|
|
|
//~^ panic
|
2021-09-08 20:30:22 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() { }
|