1
Fork 0

Fix code indentation

This commit is contained in:
Esteban Küber 2023-11-06 19:56:45 +00:00
parent 8e7d0702a2
commit 099eb40932
2 changed files with 3 additions and 3 deletions

View file

@ -830,8 +830,8 @@ impl<'a> Parser<'a> {
// https://github.com/rust-lang/rust/issues/72373 // https://github.com/rust-lang/rust/issues/72373
if self.prev_token.is_ident() && self.token.kind == token::DotDot { if self.prev_token.is_ident() && self.token.kind == token::DotDot {
let msg = format!( let msg = format!(
"if you meant to bind the contents of \ "if you meant to bind the contents of the rest of the array \
the rest of the array pattern into `{}`, use `@`", pattern into `{}`, use `@`",
pprust::token_to_string(&self.prev_token) pprust::token_to_string(&self.prev_token)
); );
expect_err expect_err