2023-11-25 06:30:41 +00:00
|
|
|
error: expected `cancel_handle` or `from_py_with`
|
2021-10-12 00:52:24 +00:00
|
|
|
--> tests/ui/invalid_argument_attributes.rs:4:29
|
2021-02-20 15:15:20 +00:00
|
|
|
|
|
2024-05-03 07:42:30 +00:00
|
|
|
4 | fn invalid_attribute(#[pyo3(get)] _param: String) {}
|
2021-02-20 15:15:20 +00:00
|
|
|
| ^^^
|
|
|
|
|
2021-04-17 21:22:06 +00:00
|
|
|
error: expected `=`
|
2021-12-03 23:29:02 +00:00
|
|
|
--> tests/ui/invalid_argument_attributes.rs:7:45
|
2021-02-20 15:15:20 +00:00
|
|
|
|
|
2024-05-03 07:42:30 +00:00
|
|
|
7 | fn from_py_with_no_value(#[pyo3(from_py_with)] _param: String) {}
|
2021-12-03 23:29:02 +00:00
|
|
|
| ^
|
2021-02-20 15:15:20 +00:00
|
|
|
|
2023-11-25 06:30:41 +00:00
|
|
|
error: expected `cancel_handle` or `from_py_with`
|
2021-10-12 00:52:24 +00:00
|
|
|
--> tests/ui/invalid_argument_attributes.rs:10:31
|
2021-02-20 15:15:20 +00:00
|
|
|
|
|
2024-05-03 07:42:30 +00:00
|
|
|
10 | fn from_py_with_string(#[pyo3("from_py_with")] _param: String) {}
|
2021-02-20 15:15:20 +00:00
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
2021-04-17 21:22:06 +00:00
|
|
|
error: expected string literal
|
2021-10-12 00:52:24 +00:00
|
|
|
--> tests/ui/invalid_argument_attributes.rs:13:58
|
2021-02-20 15:15:20 +00:00
|
|
|
|
|
2024-05-03 07:42:30 +00:00
|
|
|
13 | fn from_py_with_value_not_a_string(#[pyo3(from_py_with = func)] _param: String) {}
|
2021-02-20 15:15:20 +00:00
|
|
|
| ^^^^
|
2023-11-25 06:30:41 +00:00
|
|
|
|
|
|
|
error: `from_py_with` may only be specified once per argument
|
|
|
|
--> tests/ui/invalid_argument_attributes.rs:16:56
|
|
|
|
|
|
2024-05-03 07:42:30 +00:00
|
|
|
16 | fn from_py_with_repeated(#[pyo3(from_py_with = "func", from_py_with = "func")] _param: String) {}
|
2023-11-25 06:30:41 +00:00
|
|
|
| ^^^^^^^^^^^^
|