1[testing] 2struct StructAttrTest { 3 foo string 4 bar int 5} 6 7[testing] 8pub struct PubStructAttrTest { 9 foo string 10 bar int 11} 12 13[testing] 14enum EnumAttrTest { 15 one 16 two 17} 18 19[testing] 20pub enum PubEnumAttrTest { 21 one 22 two 23} 24 25 26[attrone] 27[attrtwo] 28pub enum EnumMultiAttrTest { 29 one 30 two 31} 32 33[testing] 34fn test_fn_attribute() { 35 assert true 36} 37 38[testing] 39pub fn test_pub_fn_attribute() { 40 assert true 41} 42 43[attrone] 44[attrtwo] 45fn test_fn_multi_attribute() { 46 assert true 47} 48 49[attrone; attrtwo] 50fn test_fn_multi_attribute_single() { 51 assert true 52} 53