From d66d35bb9184b7f3a4e155386ca44410c0d09ff2 Mon Sep 17 00:00:00 2001 From: Esteban Küber Date: Wed, 30 May 2018 11:04:39 -0700 Subject: Account for comma in suggestion --- src/test/parse-fail/bind-struct-early-modifiers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test/parse-fail') 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 `,` _ => {} } } -- cgit 1.4.1-3-g733a5