mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00
16 lines
253 B
Rust
16 lines
253 B
Rust
// 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() {}
|