fix formatting + test syntax

This commit is contained in:
SpanishPear 2023-02-01 18:11:37 +11:00
parent 70bfcc2518
commit a3d32bbbbe
13 changed files with 1 additions and 13 deletions

View file

@ -353,7 +353,7 @@ impl<'a> Parser<'a> {
if !self.look_ahead(1, |t| *t == token::Lt) &&
let Ok(snippet) = self.sess.source_map().span_to_snippet(generic.span) {
err.multipart_suggestion_verbose(
err.multipart_suggestion_verbose(
format!("place the generic parameter name after the {ident_name} name"),
vec![
(self.token.span.shrink_to_hi(), snippet),