Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2019
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rust 1.52 KB | None | 0 0
  1. error[E0277]: the trait bound `Error: std::convert::From<std::option::NoneError>` is not satisfied
  2.   --> src/main.rs:83:25
  3.    |
  4. 83 |         .with_extension(source_file.extension()?.to_str()?.to_owned() + ".xmp");
  5.    |                         ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::convert::From<std::option::NoneError>` is not implemented for `Error`
  6.    |
  7.    = help: the following implementations were found:
  8.              <Error as std::convert::From<&'a str>>
  9.             <Error as std::convert::From<ErrorKind>>
  10.             <Error as std::convert::From<std::io::Error>>
  11.             <Error as std::convert::From<std::num::ParseIntError>>
  12.             <Error as std::convert::From<std::string::String>>
  13.   = note: required by `std::convert::From::from`
  14.  
  15. error[E0277]: the trait bound `Error: std::convert::From<std::option::NoneError>` is not satisfied
  16.  --> src/main.rs:83:25
  17.   |
  18. 83 |         .with_extension(source_file.extension()?.to_str()?.to_owned() + ".xmp");
  19.   |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::convert::From<std::option::NoneError>` is not implemented for `Error`
  20.   |
  21.   = help: the following implementations were found:
  22.             <Error as std::convert::From<&'a str>>
  23.              <Error as std::convert::From<ErrorKind>>
  24.              <Error as std::convert::From<std::io::Error>>
  25.              <Error as std::convert::From<std::num::ParseIntError>>
  26.              <Error as std::convert::From<std::string::String>>
  27.    = note: required by `std::convert::From::from`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement