You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_ =Data<Int>() // expected-error {{missing argument for parameter #1 in call}}
339
340
_ =Data<Int>(0) // Ok
340
341
_ =Data<Int,String>(42,"") // Ok
341
342
_ =Data<Int>(42,"") // expected-error {{extra argument in call}}
342
343
_ =Data<Int,String>((42,""))
343
-
// expected-error@-1 {{initializer expects 2 separate arguments; remove extra parentheses to change tuple into separate arguments}}
344
+
// expected-error@-1 {{value pack expansion at parameter #0 expects 2 separate arguments; remove extra parentheses to change tuple into separate arguments}} {{25-26=}} {{32-33=}}
344
345
_ =Data<Int,String,Float>(vals:(42,"",0))
345
-
// expected-error@-1 {{initializer expects 3 separate arguments; remove extra parentheses to change tuple into separate arguments}}
346
+
// expected-error@-1 {{value pack expansion at parameter #0 expects 3 separate arguments; remove extra parentheses to change tuple into separate arguments}} {{38-39=}} {{48-49=}}
346
347
_ =Data<Int,String,Float>((vals:42,"",0))
347
-
// expected-error@-1 {{initializer expects 3 separate arguments; remove extra parentheses to change tuple into separate arguments}}
348
+
// expected-error@-1 {{value pack expansion at parameter #0 expects 3 separate arguments; remove extra parentheses to change tuple into separate arguments}} {{32-33=}} {{48-49=}}
349
+
_ =Data<Int,String,Float>(tuple)
350
+
// expected-error@-1 {{value pack expansion at parameter #0 expects 3 separate arguments}}
351
+
_ =Data<Int,String,Float>(x:42, tuple)
352
+
// expected-error@-1 {{value pack expansion at parameter #1 expects 3 separate arguments}}
353
+
_ =Data<Int,String,Float>(x:42, tuple, y:1,2,3)
354
+
// expected-error@-1 {{value pack expansion at parameter #1 expects 3 separate arguments}}
0 commit comments