]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/issue-88434-removal-index-should-be-less.rs
Auto merge of #106646 - Amanieu:ilp32-object, r=Mark-Simulacrum
[rust.git] / tests / ui / borrowck / issue-88434-removal-index-should-be-less.rs
1 // Regression test for issue 88434
2
3 const _CONST: &[u8] = &f(&[], |_| {});
4 //~^ 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     //~^ panic
12 }
13
14 fn main() { }