]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_parse/src/parser/ty.rs
Recover from a misplaced inner doc comment
[rust.git] / compiler / rustc_parse / src / parser / ty.rs
index 89cf2d7876e1d9d523935bb3d9505f2425e7bc5e..de5a5632600e4ee39a1f6c0dd90d01f92fb5ed46 100644 (file)
@@ -334,7 +334,6 @@ fn parse_remaining_bounds(
         mut bounds: GenericBounds,
         plus: bool,
     ) -> PResult<'a, TyKind> {
-        assert_ne!(self.token, token::Question);
         if plus {
             self.eat_plus(); // `+`, or `+=` gets split and `+` is discarded
             bounds.append(&mut self.parse_generic_bounds(Some(self.prev_token.span))?);