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
Copy file name to clipboardExpand all lines: diesel_compile_tests/tests/fail/derive/bad_variadic.rs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -7,14 +7,14 @@ extern "SQL" {
7
7
//~^ ERROR: invalid ABI: found `SQL`
8
8
9
9
#[variadic(not_a_literal_number)]
10
-
//~^ ERROR: expected integer literal, the correct format is `#[variadic(3)]`
10
+
//~^ ERROR: expect `last_arguments`, the correct format is `#[variadic(last_arguments = 3)]` or `#[variadic(last_arguments = 3, skip_zero_argument_variant = true)]`
11
11
//~| ERROR: cannot find attribute `variadic` in this scope
12
12
fnf();
13
13
}
14
14
15
15
#[declare_sql_function]
16
16
extern"SQL"{
17
-
#[variadic(3)]
17
+
#[variadic(last_arguments = 3)]
18
18
//~^ ERROR: invalid variadic argument count: not enough function arguments
Copy file name to clipboardExpand all lines: diesel_compile_tests/tests/fail/derive/bad_variadic.stderr
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
-
error: expected integer literal, the correct format is `#[variadic(3)]`
1
+
error: expect `last_arguments`, the correct format is `#[variadic(last_arguments = 3)]` or `#[variadic(last_arguments = 3, skip_zero_argument_variant = true)]`
2
2
--> tests/fail/derive/bad_variadic.rs:9:16
3
3
|
4
4
LL | #[variadic(not_a_literal_number)]
5
5
| ^^^^^^^^^^^^^^^^^^^^
6
6
7
7
error: invalid variadic argument count: not enough function arguments
8
-
--> tests/fail/derive/bad_variadic.rs:17:16
8
+
--> tests/fail/derive/bad_variadic.rs:17:33
9
9
|
10
-
LL | #[variadic(3)]
11
-
| ^
10
+
LL | #[variadic(last_arguments = 3)]
11
+
| ^
12
12
13
13
error: cannot find attribute `variadic` in this scope
0 commit comments