mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
15 lines
230 B
Rust
15 lines
230 B
Rust
// Regression test related to issue 88434
|
|
|
|
const _CONST: &() = &f(&|_| {});
|
|
//~^ constant
|
|
|
|
const fn f<F>(_: &F)
|
|
where
|
|
F: FnMut(&u8),
|
|
{
|
|
panic!() //~ ERROR evaluation of constant value failed
|
|
//~^ panic
|
|
}
|
|
|
|
fn main() { }
|