2021-06-09 05:41:03 -05:00
|
|
|
error: only foreign or `unsafe extern "C"` functions may be C-variadic
|
2021-03-08 17:43:18 -06:00
|
|
|
--> $DIR/variadic-ffi-semantic-restrictions.rs:6:19
|
2019-12-01 19:38:33 -06:00
|
|
|
|
|
2019-12-01 20:16:12 -06:00
|
|
|
LL | fn f1_1(x: isize, ...) {}
|
2020-09-26 12:46:00 -05:00
|
|
|
| ^^^
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
|
|
error: C-variadic function must be declared with at least one named argument
|
2021-03-08 17:43:18 -06:00
|
|
|
--> $DIR/variadic-ffi-semantic-restrictions.rs:9:9
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
|
|
|
LL | fn f1_2(...) {}
|
2020-09-26 12:46:00 -05:00
|
|
|
| ^^^
|
2019-12-01 20:16:12 -06:00
|
|
|
|
2021-06-09 05:41:03 -05:00
|
|
|
error: only foreign or `unsafe extern "C"` functions may be C-variadic
|
2021-03-08 17:43:18 -06:00
|
|
|
--> $DIR/variadic-ffi-semantic-restrictions.rs:9:9
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
|
|
|
LL | fn f1_2(...) {}
|
2020-09-26 12:46:00 -05:00
|
|
|
| ^^^
|
2019-12-01 20:16:12 -06:00
|
|
|
|
2021-06-09 05:41:03 -05:00
|
|
|
error: only foreign or `unsafe extern "C"` functions may be C-variadic
|
2021-03-08 17:43:18 -06:00
|
|
|
--> $DIR/variadic-ffi-semantic-restrictions.rs:13:30
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
|
|
|
LL | extern "C" fn f2_1(x: isize, ...) {}
|
2020-09-26 12:46:00 -05:00
|
|
|
| ^^^
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
|
|
error: C-variadic function must be declared with at least one named argument
|
2021-03-08 17:43:18 -06:00
|
|
|
--> $DIR/variadic-ffi-semantic-restrictions.rs:16:20
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
|
|
|
LL | extern "C" fn f2_2(...) {}
|
2020-09-26 12:46:00 -05:00
|
|
|
| ^^^
|
2019-12-01 20:16:12 -06:00
|
|
|
|
2021-06-09 05:41:03 -05:00
|
|
|
error: only foreign or `unsafe extern "C"` functions may be C-variadic
|
2021-03-08 17:43:18 -06:00
|
|
|
--> $DIR/variadic-ffi-semantic-restrictions.rs:16:20
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
|
|
|
LL | extern "C" fn f2_2(...) {}
|
2020-09-26 12:46:00 -05:00
|
|
|
| ^^^
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
|
|
error: `...` must be the last argument of a C-variadic function
|
2021-03-08 17:43:18 -06:00
|
|
|
--> $DIR/variadic-ffi-semantic-restrictions.rs:20:20
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
|
|
|
LL | extern "C" fn f2_3(..., x: isize) {}
|
2020-09-26 12:46:00 -05:00
|
|
|
| ^^^
|
2019-12-01 20:16:12 -06:00
|
|
|
|
2021-06-09 05:41:03 -05:00
|
|
|
error: only foreign or `unsafe extern "C"` functions may be C-variadic
|
2021-03-08 17:43:18 -06:00
|
|
|
--> $DIR/variadic-ffi-semantic-restrictions.rs:20:20
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
|
|
|
LL | extern "C" fn f2_3(..., x: isize) {}
|
2020-09-26 12:46:00 -05:00
|
|
|
| ^^^
|
2019-12-01 19:38:33 -06:00
|
|
|
|
2021-06-09 05:41:03 -05:00
|
|
|
error: only foreign or `unsafe extern "C"` functions may be C-variadic
|
2021-03-08 17:43:18 -06:00
|
|
|
--> $DIR/variadic-ffi-semantic-restrictions.rs:24:30
|
2019-12-01 19:38:33 -06:00
|
|
|
|
|
2020-09-01 16:12:52 -05:00
|
|
|
LL | extern "C" fn f3_1(x: isize, ...) {}
|
|
|
|
| ^^^
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
|
|
error: C-variadic function must be declared with at least one named argument
|
2021-03-08 17:43:18 -06:00
|
|
|
--> $DIR/variadic-ffi-semantic-restrictions.rs:27:20
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
2020-09-01 16:12:52 -05:00
|
|
|
LL | extern "C" fn f3_2(...) {}
|
|
|
|
| ^^^
|
2019-12-01 20:16:12 -06:00
|
|
|
|
2021-06-09 05:41:03 -05:00
|
|
|
error: only foreign or `unsafe extern "C"` functions may be C-variadic
|
2021-03-08 17:43:18 -06:00
|
|
|
--> $DIR/variadic-ffi-semantic-restrictions.rs:27:20
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
2020-09-01 16:12:52 -05:00
|
|
|
LL | extern "C" fn f3_2(...) {}
|
|
|
|
| ^^^
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
|
|
error: `...` must be the last argument of a C-variadic function
|
2021-03-08 17:43:18 -06:00
|
|
|
--> $DIR/variadic-ffi-semantic-restrictions.rs:31:20
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
2020-09-01 16:12:52 -05:00
|
|
|
LL | extern "C" fn f3_3(..., x: isize) {}
|
|
|
|
| ^^^
|
2019-12-01 20:16:12 -06:00
|
|
|
|
2021-06-09 05:41:03 -05:00
|
|
|
error: only foreign or `unsafe extern "C"` functions may be C-variadic
|
2021-03-08 17:43:18 -06:00
|
|
|
--> $DIR/variadic-ffi-semantic-restrictions.rs:31:20
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
2020-09-01 16:12:52 -05:00
|
|
|
LL | extern "C" fn f3_3(..., x: isize) {}
|
|
|
|
| ^^^
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
|
|
error: C-variadic function must be declared with at least one named argument
|
2021-03-08 17:43:18 -06:00
|
|
|
--> $DIR/variadic-ffi-semantic-restrictions.rs:36:13
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
|
|
|
LL | fn e_f1(...);
|
2020-09-26 12:46:00 -05:00
|
|
|
| ^^^
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
|
|
error: `...` must be the last argument of a C-variadic function
|
2021-03-08 17:43:18 -06:00
|
|
|
--> $DIR/variadic-ffi-semantic-restrictions.rs:38:13
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
|
|
|
LL | fn e_f2(..., x: isize);
|
2020-09-26 12:46:00 -05:00
|
|
|
| ^^^
|
2019-12-01 20:16:12 -06:00
|
|
|
|
2021-06-09 05:41:03 -05:00
|
|
|
error: only foreign or `unsafe extern "C"` functions may be C-variadic
|
2021-03-08 17:43:18 -06:00
|
|
|
--> $DIR/variadic-ffi-semantic-restrictions.rs:45:23
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
|
|
|
LL | fn i_f1(x: isize, ...) {}
|
2020-09-26 12:46:00 -05:00
|
|
|
| ^^^
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
|
|
error: C-variadic function must be declared with at least one named argument
|
2021-03-08 17:43:18 -06:00
|
|
|
--> $DIR/variadic-ffi-semantic-restrictions.rs:47:13
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
|
|
|
LL | fn i_f2(...) {}
|
2020-09-26 12:46:00 -05:00
|
|
|
| ^^^
|
2019-12-01 20:16:12 -06:00
|
|
|
|
2021-06-09 05:41:03 -05:00
|
|
|
error: only foreign or `unsafe extern "C"` functions may be C-variadic
|
2021-03-08 17:43:18 -06:00
|
|
|
--> $DIR/variadic-ffi-semantic-restrictions.rs:47:13
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
|
|
|
LL | fn i_f2(...) {}
|
2020-09-26 12:46:00 -05:00
|
|
|
| ^^^
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
|
|
error: `...` must be the last argument of a C-variadic function
|
2021-03-08 17:43:18 -06:00
|
|
|
--> $DIR/variadic-ffi-semantic-restrictions.rs:50:13
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
|
|
|
LL | fn i_f3(..., x: isize, ...) {}
|
2020-09-26 12:46:00 -05:00
|
|
|
| ^^^
|
2019-12-01 20:16:12 -06:00
|
|
|
|
2021-06-09 05:41:03 -05:00
|
|
|
error: only foreign or `unsafe extern "C"` functions may be C-variadic
|
2021-03-08 17:43:18 -06:00
|
|
|
--> $DIR/variadic-ffi-semantic-restrictions.rs:50:13
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
|
|
|
LL | fn i_f3(..., x: isize, ...) {}
|
2020-09-26 12:46:00 -05:00
|
|
|
| ^^^
|
2019-12-01 20:16:12 -06:00
|
|
|
|
2021-06-09 05:41:03 -05:00
|
|
|
error: only foreign or `unsafe extern "C"` functions may be C-variadic
|
2021-03-08 17:43:18 -06:00
|
|
|
--> $DIR/variadic-ffi-semantic-restrictions.rs:50:28
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
|
|
|
LL | fn i_f3(..., x: isize, ...) {}
|
2020-09-26 12:46:00 -05:00
|
|
|
| ^^^
|
2019-12-01 19:38:33 -06:00
|
|
|
|
2019-12-01 20:16:12 -06:00
|
|
|
error: `...` must be the last argument of a C-variadic function
|
2021-03-08 17:43:18 -06:00
|
|
|
--> $DIR/variadic-ffi-semantic-restrictions.rs:54:13
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
|
|
|
LL | fn i_f4(..., x: isize, ...) {}
|
2020-09-26 12:46:00 -05:00
|
|
|
| ^^^
|
2019-12-01 20:16:12 -06:00
|
|
|
|
2021-06-09 05:41:03 -05:00
|
|
|
error: only foreign or `unsafe extern "C"` functions may be C-variadic
|
2021-03-08 17:43:18 -06:00
|
|
|
--> $DIR/variadic-ffi-semantic-restrictions.rs:54:13
|
2019-12-01 19:38:33 -06:00
|
|
|
|
|
2019-12-01 20:16:12 -06:00
|
|
|
LL | fn i_f4(..., x: isize, ...) {}
|
2020-09-26 12:46:00 -05:00
|
|
|
| ^^^
|
2019-12-01 20:16:12 -06:00
|
|
|
|
2021-06-09 05:41:03 -05:00
|
|
|
error: only foreign or `unsafe extern "C"` functions may be C-variadic
|
2021-03-08 17:43:18 -06:00
|
|
|
--> $DIR/variadic-ffi-semantic-restrictions.rs:54:28
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
|
|
|
LL | fn i_f4(..., x: isize, ...) {}
|
2020-09-26 12:46:00 -05:00
|
|
|
| ^^^
|
2019-12-01 19:38:33 -06:00
|
|
|
|
2021-06-09 05:41:03 -05:00
|
|
|
error: only foreign or `unsafe extern "C"` functions may be C-variadic
|
2021-03-08 17:43:18 -06:00
|
|
|
--> $DIR/variadic-ffi-semantic-restrictions.rs:61:23
|
2019-12-01 19:38:33 -06:00
|
|
|
|
|
2019-12-01 20:16:12 -06:00
|
|
|
LL | fn t_f1(x: isize, ...) {}
|
2020-09-26 12:46:00 -05:00
|
|
|
| ^^^
|
2019-12-01 19:38:33 -06:00
|
|
|
|
2021-06-09 05:41:03 -05:00
|
|
|
error: only foreign or `unsafe extern "C"` functions may be C-variadic
|
2021-03-08 17:43:18 -06:00
|
|
|
--> $DIR/variadic-ffi-semantic-restrictions.rs:63:23
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
|
|
|
LL | fn t_f2(x: isize, ...);
|
2020-09-26 12:46:00 -05:00
|
|
|
| ^^^
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
|
|
error: C-variadic function must be declared with at least one named argument
|
2021-03-08 17:43:18 -06:00
|
|
|
--> $DIR/variadic-ffi-semantic-restrictions.rs:65:13
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
|
|
|
LL | fn t_f3(...) {}
|
2020-09-26 12:46:00 -05:00
|
|
|
| ^^^
|
2019-12-01 20:16:12 -06:00
|
|
|
|
2021-06-09 05:41:03 -05:00
|
|
|
error: only foreign or `unsafe extern "C"` functions may be C-variadic
|
2021-03-08 17:43:18 -06:00
|
|
|
--> $DIR/variadic-ffi-semantic-restrictions.rs:65:13
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
|
|
|
LL | fn t_f3(...) {}
|
2020-09-26 12:46:00 -05:00
|
|
|
| ^^^
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
|
|
error: C-variadic function must be declared with at least one named argument
|
2021-03-08 17:43:18 -06:00
|
|
|
--> $DIR/variadic-ffi-semantic-restrictions.rs:68:13
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
|
|
|
LL | fn t_f4(...);
|
2020-09-26 12:46:00 -05:00
|
|
|
| ^^^
|
2019-12-01 20:16:12 -06:00
|
|
|
|
2021-06-09 05:41:03 -05:00
|
|
|
error: only foreign or `unsafe extern "C"` functions may be C-variadic
|
2021-03-08 17:43:18 -06:00
|
|
|
--> $DIR/variadic-ffi-semantic-restrictions.rs:68:13
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
|
|
|
LL | fn t_f4(...);
|
2020-09-26 12:46:00 -05:00
|
|
|
| ^^^
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
|
|
error: `...` must be the last argument of a C-variadic function
|
2021-03-08 17:43:18 -06:00
|
|
|
--> $DIR/variadic-ffi-semantic-restrictions.rs:71:13
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
|
|
|
LL | fn t_f5(..., x: isize) {}
|
2020-09-26 12:46:00 -05:00
|
|
|
| ^^^
|
2019-12-01 20:16:12 -06:00
|
|
|
|
2021-06-09 05:41:03 -05:00
|
|
|
error: only foreign or `unsafe extern "C"` functions may be C-variadic
|
2021-03-08 17:43:18 -06:00
|
|
|
--> $DIR/variadic-ffi-semantic-restrictions.rs:71:13
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
|
|
|
LL | fn t_f5(..., x: isize) {}
|
2020-09-26 12:46:00 -05:00
|
|
|
| ^^^
|
2019-12-01 20:16:12 -06:00
|
|
|
|
|
|
|
error: `...` must be the last argument of a C-variadic function
|
2021-03-08 17:43:18 -06:00
|
|
|
--> $DIR/variadic-ffi-semantic-restrictions.rs:74:13
|
2019-12-01 19:38:33 -06:00
|
|
|
|
|
2019-12-01 20:16:12 -06:00
|
|
|
LL | fn t_f6(..., x: isize);
|
2020-09-26 12:46:00 -05:00
|
|
|
| ^^^
|
2019-12-01 19:38:33 -06:00
|
|
|
|
2021-06-09 05:41:03 -05:00
|
|
|
error: only foreign or `unsafe extern "C"` functions may be C-variadic
|
2021-03-08 17:43:18 -06:00
|
|
|
--> $DIR/variadic-ffi-semantic-restrictions.rs:74:13
|
2019-12-01 19:38:33 -06:00
|
|
|
|
|
2019-12-01 20:16:12 -06:00
|
|
|
LL | fn t_f6(..., x: isize);
|
2020-09-26 12:46:00 -05:00
|
|
|
| ^^^
|
2019-12-01 19:38:33 -06:00
|
|
|
|
2019-12-01 20:16:12 -06:00
|
|
|
error: aborting due to 34 previous errors
|
2019-12-01 19:38:33 -06:00
|
|
|
|