1
Fork 0

Make unexpected always "return" PResult<()> & add unexpected_any

This prevents breakage when `?` no longer skews inference.
This commit is contained in:
Maybe Waffle 2024-03-15 11:36:21 +00:00
parent ee03c286cf
commit defcc44238
7 changed files with 25 additions and 15 deletions

View file

@ -481,7 +481,7 @@ impl<'a> Parser<'a> {
}))
} else {
self.maybe_recover_bounds_doubled_colon(&ty)?;
self.unexpected()
self.unexpected_any()
}
}