Lines Matching defs:ty
56 let mut ty: TypePath = parse_quote!(<Self as A>::Q);
57 snapshot!(ty.to_token_stream(), @r###"
60 assert!(ty.path.segments.pop().is_some());
61 snapshot!(ty.to_token_stream(), @r###"
64 assert!(ty.path.segments.pop().is_some());
65 snapshot!(ty.to_token_stream(), @r###"
68 assert!(ty.path.segments.pop().is_none());
71 let mut ty: TypePath = parse_quote!(<Self>::A::B);
72 snapshot!(ty.to_token_stream(), @r###"
75 assert!(ty.path.segments.pop().is_some());
76 snapshot!(ty.to_token_stream(), @r###"
79 assert!(ty.path.segments.pop().is_some());
80 snapshot!(ty.to_token_stream(), @r###"
83 assert!(ty.path.segments.pop().is_none());
86 let mut ty: TypePath = parse_quote!(Self::A::B);
87 snapshot!(ty.to_token_stream(), @r###"
90 assert!(ty.path.segments.pop().is_some());
91 snapshot!(ty.to_token_stream(), @r###"
94 assert!(ty.path.segments.pop().is_some());
95 snapshot!(ty.to_token_stream(), @r###"
98 assert!(ty.path.segments.pop().is_some());
99 snapshot!(ty.to_token_stream(), @r###"
102 assert!(ty.path.segments.pop().is_none());