]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/default-unmatched.stderr
Account for ADT bodies and struct expressions
[rust.git] / src / test / ui / parser / default-unmatched.stderr
1 error: `default` is not followed by an item
2   --> $DIR/default-unmatched.rs:3:5
3    |
4 LL |     default do
5    |     ^^^^^^^ the `default` qualifier
6    |
7    = note: only `fn`, `const`, `type`, or `impl` items may be prefixed by `default`
8
9 error: expected item, found reserved keyword `do`
10   --> $DIR/default-unmatched.rs:3:13
11    |
12 LL |     default do
13    |             ^^ expected item
14
15 error: aborting due to 2 previous errors
16