]> git.proxmox.com Git - rustc.git/blame - src/test/ui/borrowck/issue-88434-removal-index-should-be-less.rs
New upstream version 1.61.0+dfsg1
[rustc.git] / src / test / ui / borrowck / issue-88434-removal-index-should-be-less.rs
CommitLineData
c295e0f8
XL
1// Regression test for issue 88434
2
3const _CONST: &[u8] = &f(&[], |_| {});
4
5const fn f<F>(_: &[u8], _: F) -> &[u8]
6where
7 F: FnMut(&u8),
8{
9 panic!() //~ ERROR evaluation of constant value failed
10}
11
12fn main() { }