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}}
340
341
_ =Data<Int>(0) // Ok
341
342
_ =Data<Int,String>(42,"") // Ok
342
343
_ =Data<Int>(42,"") // expected-error {{extra argument in call}}
343
344
_ =Data<Int,String>((42,""))
344
-
// expected-error@-1 {{initializer expects 2 separate arguments; remove extra parentheses to change tuple into separate arguments}}
345
+
// 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=}}
345
346
_ =Data<Int,String,Float>(vals:(42,"",0))
346
-
// expected-error@-1 {{initializer expects 3 separate arguments; remove extra parentheses to change tuple into separate arguments}}
347
+
// 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=}}
347
348
_ =Data<Int,String,Float>((vals:42,"",0))
348
-
// expected-error@-1 {{initializer expects 3 separate arguments; remove extra parentheses to change tuple into separate arguments}}
349
+
// 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=}}
350
+
_ =Data<Int,String,Float>(tuple)
351
+
// expected-error@-1 {{value pack expansion at parameter #0 expects 3 separate arguments}}
352
+
_ =Data<Int,String,Float>(x:42, tuple)
353
+
// expected-error@-1 {{value pack expansion at parameter #1 expects 3 separate arguments}}
354
+
_ =Data<Int,String,Float>(x:42, tuple, y:1,2,3)
355
+
// expected-error@-1 {{value pack expansion at parameter #1 expects 3 separate arguments}}
0 commit comments