]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/recover-from-bad-variant.stderr
Rollup merge of #61423 - davidtwco:correct-symbol-mangling, r=eddyb
[rust.git] / src / test / ui / parser / recover-from-bad-variant.stderr
1 error: expected type, found `3`
2   --> $DIR/recover-from-bad-variant.rs:7:26
3    |
4 LL |     let x = Enum::Foo(a: 3, b: 4);
5    |                          ^ expecting a type here because of type ascription
6    |
7    = note: #![feature(type_ascription)] 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
14
15 error[E0532]: expected tuple struct/variant, found struct variant `Enum::Foo`
16   --> $DIR/recover-from-bad-variant.rs:10:9
17    |
18 LL |         Enum::Foo(a, b) => {}
19    |         ^^^^^^^^^ did you mean `Enum::Foo { /* fields */ }`?
20
21 error: aborting due to 2 previous errors
22
23 For more information about this error, try `rustc --explain E0532`.