1 // Regression test: issue had to do with "givens" in region inference,
2 // which were not being considered during the contraction phase.
5 // error-pattern:explicit panic
6 // ignore-emscripten no processes
8 struct Parser<'i: 't, 't>(&'i u8, &'t u8);
10 impl<'i, 't> Parser<'i, 't> {
11 fn parse_nested_block<F, T>(&mut self, parse: F) -> Result<T, ()>
12 where for<'tt> F: FnOnce(&mut Parser<'i, 'tt>) -> T
17 fn expect_exhausted(&mut self) -> Result<(), ()> {
24 Parser(&x, &x).parse_nested_block(|input| input.expect_exhausted()).unwrap();