Skip to content
Permalink
Browse files

fix text after rebase

  • Loading branch information...
estebank committed Mar 29, 2019
1 parent e3918cf commit b7dc8e71ccb15ff54b9cdf0f67776cc3cf4bea33
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/test/ui/parser/recover-from-bad-variant.stderr
@@ -3,6 +3,14 @@ error: expected type, found `3`
|
LL | let x = Enum::Foo(a: 3, b: 4);
| ^ expecting a type here because of type ascription
|
= note: type ascription is a nightly-only feature that lets you annotate an expression with a type: `<expr>: <type>`
note: this expression expects an ascribed type after the colon
--> $DIR/recover-from-bad-variant.rs:7:23
|
LL | let x = Enum::Foo(a: 3, b: 4);
| ^
= help: this might be indicative of a syntax error elsewhere

error[E0532]: expected tuple struct/variant, found struct variant `Enum::Foo`
--> $DIR/recover-from-bad-variant.rs:10:9

0 comments on commit b7dc8e7

Please sign in to comment.
You can’t perform that action at this time.