]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/issue-88434-minimal-example.rs
Rollup merge of #102500 - compiler-errors:parse-sess-cleanup, r=cjgillot
[rust.git] / src / test / ui / borrowck / issue-88434-minimal-example.rs
1 // Regression test related to issue 88434
2
3 const _CONST: &() = &f(&|_| {});
4 //~^ ERROR any use of this value
5 //~| WARNING this was previously
6
7 const fn f<F>(_: &F)
8 where
9     F: FnMut(&u8),
10 {
11     panic!() //~ ERROR evaluation of constant value failed
12 }
13
14 fn main() { }