]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/issue-88434-minimal-example.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[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() { }