]> git.lizzy.rs Git - rust.git/blob - tests/ui/mismatched_types/recovered-block.stderr
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
[rust.git] / tests / ui / mismatched_types / recovered-block.stderr
1 error: missing `struct` for struct definition
2   --> $DIR/recovered-block.rs:11:8
3    |
4 LL |     pub Foo { text }
5    |        ^
6    |
7 help: add `struct` here to parse `Foo` as a public struct
8    |
9 LL |     pub struct Foo { text }
10    |         ++++++
11
12 error: expected one of `(` or `<`, found `{`
13   --> $DIR/recovered-block.rs:17:9
14    |
15 LL |     Foo { text: "".to_string() }
16    |         ^ expected one of `(` or `<`
17
18 error: aborting due to 2 previous errors
19