anchor.diff:              <<>>;
           Elems ->
               PackedFields = encode_packed_2(Elems, Type, MsgDefs, <<>>),
  -            <<(encode_fnum_type(FNum, Type))/binary,
  +            <<(encode_fnum_type(FNum, bytes))/binary,
                 (encode_varint(size(PackedFields)))/binary,
                 PackedFields/binary>>
       end.
  
positive.code:                                        occurrence=required, opts=[]}]}]).
  
  encode_packed_repeated_bools_test() ->
      <<16#20,1,1>> =
          encode_msg(#m1{a=[true]},
                     [{{msg,m1},[#field{name=a,fnum=4,rnum=#m1.a, type=bool,
                                        occurrence=repeated, opts=[packed]}]}]).
  
negative.code:                                       occurrence=repeated, opts=[]}]}]).
  
  encode_repeated_nonempty_field_test() ->
      <<10,4, 150,1, 151,1>> =
          encode_msg(#m1{a=[150,151]},
                     [{{msg,m1},[#field{name=a,fnum=1,rnum=#m1.a, type=int32,
                                        occurrence=repeated, opts=[packed]}]}]),
  