Skip to content

Commit b7dc8e7

Browse files
committed
fix text after rebase
1 parent e3918cf commit b7dc8e7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/test/ui/parser/recover-from-bad-variant.stderr

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ error: expected type, found `3`
33
|
44
LL | let x = Enum::Foo(a: 3, b: 4);
55
| ^ expecting a type here because of type ascription
6+
|
7+
= note: type ascription is a nightly-only feature that lets you annotate an expression with a type: `<expr>: <type>`
8+
note: this expression expects an ascribed type after the colon
9+
--> $DIR/recover-from-bad-variant.rs:7:23
10+
|
11+
LL | let x = Enum::Foo(a: 3, b: 4);
12+
| ^
13+
= help: this might be indicative of a syntax error elsewhere
614

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

0 commit comments

Comments
 (0)