pyo3/tests/ui/invalid_argument_attributes...

24 lines
863 B
Plaintext
Raw Normal View History

error: only `from_py_with` is supported
--> $DIR/invalid_argument_attributes.rs:4:29
|
4 | fn invalid_attribute(#[pyo3(get)] param: String) {}
| ^^^
error: expected a name-value: `pyo3(from_py_with = "func")`
--> $DIR/invalid_argument_attributes.rs:7:33
|
7 | fn from_py_with_no_value(#[pyo3(from_py_with)] param: String) {}
| ^^^^^^^^^^^^
error: expected `from_py_with`, got a literal
--> $DIR/invalid_argument_attributes.rs:10:31
|
10 | fn from_py_with_string(#[pyo3("from_py_with")] param: String) {}
| ^^^^^^^^^^^^^^
error: expected literal
--> $DIR/invalid_argument_attributes.rs:13:58
|
13 | fn from_py_with_value_not_a_string(#[pyo3(from_py_with = func)] param: String) {}
| ^^^^