Files
rust/tests/ui/borrowck/issue-88434-minimal-example.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
253 B
Rust
Raw Normal View History

// 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() {}