2021-01-09 17:33:28 +00:00
|
|
|
error: positional argument or varargs(*) not allowed after keyword arguments
|
2021-10-12 00:52:24 +00:00
|
|
|
--> tests/ui/invalid_macro_args.rs:3:21
|
2020-03-06 05:01:27 +00:00
|
|
|
|
|
|
|
|
3 | #[pyfunction(a = 5, b)]
|
|
|
|
| ^
|
|
|
|
|
2021-01-09 17:33:28 +00:00
|
|
|
error: keyword argument or kwargs(**) is not allowed after kwargs(**)
|
2021-10-12 00:52:24 +00:00
|
|
|
--> tests/ui/invalid_macro_args.rs:8:29
|
2020-10-01 04:34:54 +00:00
|
|
|
|
|
|
|
|
8 | #[pyfunction(kwargs = "**", a = 5)]
|
2021-01-09 17:33:28 +00:00
|
|
|
| ^
|
2021-10-19 22:13:27 +00:00
|
|
|
|
|
|
|
error: / is not allowed after /, varargs(*), or kwargs(**)
|
|
|
|
--> tests/ui/invalid_macro_args.rs:13:25
|
|
|
|
|
|
|
|
|
13 | #[pyfunction(a, "*", b, "/", c)]
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: / is not allowed after /, varargs(*), or kwargs(**)
|
|
|
|
--> tests/ui/invalid_macro_args.rs:18:27
|
|
|
|
|
|
|
|
|
18 | #[pyfunction(a, args="*", "/", b)]
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: / is not allowed after /, varargs(*), or kwargs(**)
|
|
|
|
--> tests/ui/invalid_macro_args.rs:23:30
|
|
|
|
|
|
|
|
|
23 | #[pyfunction(a, kwargs="**", "/", b)]
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: * is not allowed after varargs(*) or kwargs(**)
|
|
|
|
--> tests/ui/invalid_macro_args.rs:28:29
|
|
|
|
|
|
|
|
|
28 | #[pyfunction(kwargs = "**", "*", a)]
|
|
|
|
| ^^^
|