blob: a99c5b76a4e47722c0223dfc65530e5acef4c191 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// Regression test for issue 88434
const _CONST: &[u8] = &f(&[], |_| {});
//~^ ERROR constant
const fn f<F>(_: &[u8], _: F) -> &[u8]
where
F: FnMut(&u8),
{
panic!() //~ ERROR evaluation of constant value failed
}
fn main() { }
|