warning: expected `string` or `bytes`, found scalar type `int32`
  --> testdata/options/validate/ctype_proto2.proto:24:14
   |
24 |     optional int32 i = 4 [ctype = CORD];
   |              ^^^^^        ----- `ctype` set here
   |
   = help: this becomes a hard error in Edition 2023

warning: cannot use `CORD` on an extension field
  --> testdata/options/validate/ctype_proto2.proto:30:5
   |
30 |     optional string x = 5 [ctype = CORD];
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^----^^
   |                                     |
   |                                     `CORD` set here
   |
   = help: this becomes a hard error in Edition 2023

encountered 2 warnings
