Voodlaz

Untitled

Jul 6th, 2020
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. error: field expressions cannot have generic arguments
  2. --> src/lib.rs:12:23
  3. |
  4. 12 | match m.downcast::<PyFloat> {
  5. | ^^^^^^^^^
  6.  
  7. error[E0615]: attempted to take value of method `downcast` on type `&pyo3::types::any::PyAny`
  8. |
  9. help: use parentheses to call the method
  10. |
  11. 1 | ()use pyo3::prelude::*;
  12. | ^^
  13.  
  14. error[E0308]: mismatched types
  15. |
  16. = note: expected enum `std::result::Result<&pyo3::types::floatob::PyFloat, pyo3::err::PyErr>`
  17. found unit type `()`
Advertisement
Add Comment
Please, Sign In to add comment