summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/default-unmatched.stderr
blob: 331e003f63c0f0671bd3ee2bfd2f0d9d8f694e30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error: `default` is not followed by an item
  --> $DIR/default-unmatched.rs:3:5
   |
LL |     default do
   |     ^^^^^^^ the `default` qualifier
   |
   = note: only `fn`, `const`, `type`, or `impl` items may be prefixed by `default`

error: expected item, found reserved keyword `do`
  --> $DIR/default-unmatched.rs:3:13
   |
LL |     default do
   |             ^^ expected item

error: aborting due to 2 previous errors