]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/issue-88434-minimal-example.rs
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / borrowck / issue-88434-minimal-example.rs
1 // Regression test related to issue 88434
2
3 const _CONST: &() = &f(&|_| {});
4 //~^ constant
5
6 const fn f<F>(_: &F)
7 where
8     F: FnMut(&u8),
9 {
10     panic!() //~ ERROR evaluation of constant value failed
11     //~^ panic
12 }
13
14 fn main() { }