@@ -2228,6 +2228,33 @@ mod explicit_type_args {
22282228 }
22292229}
22302230
2231+ mod tuples {
2232+ struct S1 {
2233+ }
2234+
2235+ impl S1 {
2236+ fn get_pair ( ) -> ( S1 , S1 ) { ( S1 { } , S1 { } ) }
2237+ fn foo ( self ) { }
2238+ }
2239+
2240+ pub fn f ( ) {
2241+ let a = S1 :: get_pair ( ) ; // $ method=get_pair MISSING: type=a:?
2242+ let mut b = S1 :: get_pair ( ) ; // $ method=get_pair MISSING: type=b:?
2243+ let ( c, d) = S1 :: get_pair ( ) ; // $ method=get_pair MISSING: type=c:? type=d:?
2244+ let ( mut e, f) = S1 :: get_pair ( ) ; // $ method=get_pair MISSING: type=e: type=f:
2245+ let ( mut g, mut h) = S1 :: get_pair ( ) ; // $ method=get_pair MISSING: type=g:? type=h:?
2246+
2247+ a. 0 . foo ( ) ; // $ MISSING: method=foo
2248+ b. 1 . foo ( ) ; // $ MISSING: method=foo
2249+ c. foo ( ) ; // $ MISSING: method=foo
2250+ d. foo ( ) ; // $ MISSING: method=foo
2251+ e. foo ( ) ; // $ MISSING: method=foo
2252+ f. foo ( ) ; // $ MISSING: method=foo
2253+ g. foo ( ) ; // $ MISSING: method=foo
2254+ h. foo ( ) ; // $ MISSING: method=foo
2255+ }
2256+ }
2257+
22312258fn main ( ) {
22322259 field_access:: f ( ) ; // $ method=f
22332260 method_impl:: f ( ) ; // $ method=f
@@ -2251,7 +2278,9 @@ fn main() {
22512278 impl_trait:: f ( ) ; // $ method=f
22522279 indexers:: f ( ) ; // $ method=f
22532280 loops:: f ( ) ; // $ method=f
2281+ explicit_type_args:: f ( ) ; // $ method=f
22542282 macros:: f ( ) ; // $ method=f
22552283 method_determined_by_argument_type:: f ( ) ; // $ method=f
2284+ tuples:: f ( ) ; // $ method=f
22562285 dereference:: test ( ) ; // $ method=test
22572286}
0 commit comments