blob: f275321abe5ebdf27e2b97e4f870412dce7f9b9e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
error: missing `struct` for struct definition
--> $DIR/recovered-block.rs:11:8
|
LL | pub Foo { text }
| ^
|
help: add `struct` here to parse `Foo` as a public struct
|
LL | pub struct Foo { text }
| ++++++
error: expected one of `(` or `<`, found `{`
--> $DIR/recovered-block.rs:17:9
|
LL | Foo { text: "".to_string() }
| ^ expected one of `(` or `<`
error: aborting due to 2 previous errors
|