summaryrefslogtreecommitdiffstats
path: root/src/test/ui/borrowck/issue-88434-minimal-example.rs
blob: 983a023105229646b02dbc44057858594a081df0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Regression test related to issue 88434

const _CONST: &() = &f(&|_| {});
//~^ ERROR constant

const fn f<F>(_: &F)
where
    F: FnMut(&u8),
{
    panic!() //~ ERROR evaluation of constant value failed
}

fn main() { }