2021-04-17 21:22:06 +00:00
|
|
|
error: expected `from_py_with`
|
2021-02-20 15:15:20 +00:00
|
|
|
--> $DIR/invalid_argument_attributes.rs:4:29
|
|
|
|
|
|
|
|
|
4 | fn invalid_attribute(#[pyo3(get)] param: String) {}
|
|
|
|
| ^^^
|
|
|
|
|
2021-04-17 21:22:06 +00:00
|
|
|
error: expected `=`
|
|
|
|
--> $DIR/invalid_argument_attributes.rs:7:32
|
2021-02-20 15:15:20 +00:00
|
|
|
|
|
|
|
|
7 | fn from_py_with_no_value(#[pyo3(from_py_with)] param: String) {}
|
2021-04-17 21:22:06 +00:00
|
|
|
| ^^^^^^^^^^^^^^
|
2021-02-20 15:15:20 +00:00
|
|
|
|
2021-04-17 21:22:06 +00:00
|
|
|
error: expected `from_py_with`
|
2021-02-20 15:15:20 +00:00
|
|
|
--> $DIR/invalid_argument_attributes.rs:10:31
|
|
|
|
|
|
|
|
|
10 | fn from_py_with_string(#[pyo3("from_py_with")] param: String) {}
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
2021-04-17 21:22:06 +00:00
|
|
|
error: expected string literal
|
2021-02-20 15:15:20 +00:00
|
|
|
--> $DIR/invalid_argument_attributes.rs:13:58
|
|
|
|
|
|
|
|
|
13 | fn from_py_with_value_not_a_string(#[pyo3(from_py_with = func)] param: String) {}
|
|
|
|
| ^^^^
|