diff options
Diffstat (limited to 'src/test/ui/parser/struct-literal-in-for.stderr')
| -rw-r--r-- | src/test/ui/parser/struct-literal-in-for.stderr | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/parser/struct-literal-in-for.stderr b/src/test/ui/parser/struct-literal-in-for.stderr new file mode 100644 index 00000000000..4a074eef889 --- /dev/null +++ b/src/test/ui/parser/struct-literal-in-for.stderr @@ -0,0 +1,14 @@ +error: expected type, found `3` + --> $DIR/struct-literal-in-for.rs:25:12 + | +LL | x: 3 //~ ERROR expected type, found `3` + | ^ expecting a type here because of type ascription + +error: expected one of `.`, `;`, `?`, `}`, or an operator, found `{` + --> $DIR/struct-literal-in-for.rs:26:12 + | +LL | }.hi() { //~ ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `{` + | ^ expected one of `.`, `;`, `?`, `}`, or an operator here + +error: aborting due to 2 previous errors + |
