From 5c34a11324b060b0492eb390c7e9b2abc9eb61a4 Mon Sep 17 00:00:00 2001 From: Janusz Marcinkiewicz Date: Sun, 24 Nov 2019 22:33:00 +0100 Subject: Refactor 'parse_enum_item' to use 'parse_delim_comma_seq' --- src/test/ui/tuple/tuple-struct-fields/test.stderr | 4 +++- src/test/ui/tuple/tuple-struct-fields/test2.stderr | 4 +++- src/test/ui/tuple/tuple-struct-fields/test3.stderr | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) (limited to 'src/test/ui/tuple/tuple-struct-fields') diff --git a/src/test/ui/tuple/tuple-struct-fields/test.stderr b/src/test/ui/tuple/tuple-struct-fields/test.stderr index 94f39f3b9f1..bfa0b32fd45 100644 --- a/src/test/ui/tuple/tuple-struct-fields/test.stderr +++ b/src/test/ui/tuple/tuple-struct-fields/test.stderr @@ -2,7 +2,9 @@ error: expected one of `)` or `,`, found `(` --> $DIR/test.rs:4:26 | LL | struct S2(pub((foo)) ()); - | ^ expected one of `)` or `,` + | -^ expected one of `)` or `,` + | | + | help: missing `,` error[E0412]: cannot find type `foo` in this scope --> $DIR/test.rs:4:20 diff --git a/src/test/ui/tuple/tuple-struct-fields/test2.stderr b/src/test/ui/tuple/tuple-struct-fields/test2.stderr index 9a64ed97ae1..d924c351439 100644 --- a/src/test/ui/tuple/tuple-struct-fields/test2.stderr +++ b/src/test/ui/tuple/tuple-struct-fields/test2.stderr @@ -2,7 +2,9 @@ error: expected one of `)` or `,`, found `(` --> $DIR/test2.rs:5:26 | LL | struct S3(pub $t ()); - | ^ expected one of `)` or `,` + | -^ expected one of `)` or `,` + | | + | help: missing `,` ... LL | define_struct! { (foo) } | ------------------------ in this macro invocation diff --git a/src/test/ui/tuple/tuple-struct-fields/test3.stderr b/src/test/ui/tuple/tuple-struct-fields/test3.stderr index 89ae784882d..50cac6c179e 100644 --- a/src/test/ui/tuple/tuple-struct-fields/test3.stderr +++ b/src/test/ui/tuple/tuple-struct-fields/test3.stderr @@ -2,7 +2,9 @@ error: expected one of `)` or `,`, found `(` --> $DIR/test3.rs:5:27 | LL | struct S3(pub($t) ()); - | ^ expected one of `)` or `,` + | -^ expected one of `)` or `,` + | | + | help: missing `,` ... LL | define_struct! { foo } | ---------------------- in this macro invocation -- cgit 1.4.1-3-g733a5