From: Esteban Küber Date: Thu, 29 Nov 2018 00:05:02 +0000 (-0800) Subject: Clean up span in non-trailing `..` suggestion X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=66a2c39290daddf8cc32284fe635591b9dde4b0a;p=rust.git Clean up span in non-trailing `..` suggestion --- diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index e2f09affd4f..ac0bde7856a 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -3956,7 +3956,7 @@ fn parse_pat_fields(&mut self) -> PResult<'a, (Vec PResult<'a, (Vec $DIR/issue-49257.rs:21:19 @@ -21,8 +21,8 @@ LL | let Point { .., y } = p; //~ ERROR expected `}`, found `,` | `..` must be at the end and cannot have a trailing comma help: move the `..` to the end of the field list | -LL | let Point { y , .. } = p; //~ ERROR expected `}`, found `,` - | -- ^^^^^^ +LL | let Point { y , .. } = p; //~ ERROR expected `}`, found `,` + | -- ^^^^^^ error: expected `}`, found `,` --> $DIR/issue-49257.rs:22:19