2021-09-08 21:30:22 -04:00
|
|
|
// Regression test related to issue 88434
|
|
|
|
|
|
2025-04-05 19:19:56 +03:00
|
|
|
//@ dont-require-annotations: NOTE
|
|
|
|
|
|
2025-05-28 10:29:08 +00:00
|
|
|
const _CONST: &() = &f(&|_| {}); //~ ERROR explicit panic
|
2025-04-05 19:19:56 +03:00
|
|
|
//~^ NOTE constant
|
2021-09-08 21:30:22 -04:00
|
|
|
|
|
|
|
|
const fn f<F>(_: &F)
|
|
|
|
|
where
|
|
|
|
|
F: FnMut(&u8),
|
|
|
|
|
{
|
2025-04-05 19:19:56 +03:00
|
|
|
panic!() //~ NOTE inside `f
|
2021-09-08 21:30:22 -04:00
|
|
|
}
|
|
|
|
|
|
2025-05-28 10:29:08 +00:00
|
|
|
fn main() {}
|