Sign in
fuchsia
/
third_party
/
rust
/
6e1d94708a0a4a35ca7e46c6cac98adf62fe800e
/
.
/
tests
/
ui
/
borrowck
/
issue-88434-removal-index-should-be-less.rs
blob: f9134e669dcabf209ab9f108fda7c4a2f5c4d48f [
file
] [
log
] [
blame
]
// Regression test for issue 88434
const
_CONST
:
&[
u8
]
=
&
f
(&[],
|
_
|
{});
//~^ constant
const
fn
f
<
F
>(
_
:
&[
u8
],
_
:
F
)
->
&[
u8
]
where
F
:
FnMut
(&
u8
),
{
panic
!()
//~ ERROR evaluation of constant value failed
//~^ panic
}
fn
main
()
{
}