error: unexpected `export` modifier on message field
  --> testdata/parser/def/2024.proto:22:5
   |
22 |     export int32 x = 1;
   |     ^^^^^^
  help: delete it
   |
22 | -     export int32 x = 1;
22 | +     int32 x = 1;
   |
   = help: `export` only applies to a type definition

error: unexpected `local` modifier on message field
  --> testdata/parser/def/2024.proto:23:5
   |
23 |     local int32 y = 1;
   |     ^^^^^
  help: delete it
   |
23 | -     local int32 y = 1;
23 | +     int32 y = 1;
   |
   = help: `local` only applies to a type definition

error: unexpected `export` modifier on service definition
  --> testdata/parser/def/2024.proto:30:1
   |
30 | export service S1 {}
   | ^^^^^^
  help: delete it
   |
30 | - export service S1 {}
30 | + service S1 {}
   |
   = help: `export` only applies to a type definition

error: unexpected `local` modifier on service definition
  --> testdata/parser/def/2024.proto:31:1
   |
31 | local service S2 {}
   | ^^^^^
  help: delete it
   |
31 | - local service S2 {}
31 | + service S2 {}
   |
   = help: `local` only applies to a type definition

encountered 4 errors
