]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/issue-88434-removal-index-should-be-less.rs
Rollup merge of #102258 - cjgillot:core-kappa, r=m-ou-se
[rust.git] / src / test / ui / borrowck / issue-88434-removal-index-should-be-less.rs
1 // Regression test for issue 88434
2
3 const _CONST: &[u8] = &f(&[], |_| {});
4 //~^ ERROR constant
5
6 const fn f<F>(_: &[u8], _: F) -> &[u8]
7 where
8     F: FnMut(&u8),
9 {
10     panic!() //~ ERROR evaluation of constant value failed
11 }
12
13 fn main() { }