diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2018-05-30 11:04:39 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2018-06-05 08:48:55 -0700 |
| commit | d66d35bb9184b7f3a4e155386ca44410c0d09ff2 (patch) | |
| tree | 96e19f423d24963129f610a4149bdefc84cec3ea /src/test | |
| parent | cbc70a0d68bae1d439eb679676c499d543e61396 (diff) | |
Account for comma in suggestion
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/parse-fail/bind-struct-early-modifiers.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/issue-49257.stderr | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/test/parse-fail/bind-struct-early-modifiers.rs b/src/test/parse-fail/bind-struct-early-modifiers.rs index 25348a3bfd1..e9e76af11a5 100644 --- a/src/test/parse-fail/bind-struct-early-modifiers.rs +++ b/src/test/parse-fail/bind-struct-early-modifiers.rs @@ -13,7 +13,7 @@ fn main() { struct Foo { x: isize } match (Foo { x: 10 }) { - Foo { ref x: ref x } => {}, //~ ERROR expected `,`, found `:` + Foo { ref x: ref x } => {}, //~ ERROR expected `,` _ => {} } } diff --git a/src/test/ui/issue-49257.stderr b/src/test/ui/issue-49257.stderr index 7c3e7df4a1f..40179832b49 100644 --- a/src/test/ui/issue-49257.stderr +++ b/src/test/ui/issue-49257.stderr @@ -8,8 +8,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:21:19 |
