Sign in
rust
/
rust
/
HEAD
/
.
/
tests
/
ui
/
borrowck
/
issue-88434-minimal-example.rs
blob: 901e0142c36263f1dc7c132f83d654873bb934c6 [
file
] [
log
] [
blame
]
// Regression test related to issue 88434
//@ dont-require-annotations: NOTE
const
_CONST
:
&()
=
&
f
(&|
_
|
{});
//~ ERROR explicit panic
//~^ NOTE constant
const
fn
f
<
F
>(
_
:
&
F
)
where
F
:
FnMut
(&
u8
),
{
panic
!()
//~ NOTE inside `f
}
fn
main
()
{}