]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/issue-88434-removal-index-should-be-less.rs
Tweak move error
[rust.git] / src / test / ui / borrowck / issue-88434-removal-index-should-be-less.rs
1 #![feature(const_fn_trait_bound)]
2 // Regression test for issue 88434
3
4 const _CONST: &[u8] = &f(&[], |_| {});
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() { }