Skip to content

Instantly share code, notes, and snippets.

@saethlin
Created May 25, 2017 18:17
Show Gist options
  • Save saethlin/0934a81e11c003301f7857444e7c7948 to your computer and use it in GitHub Desktop.
Save saethlin/0934a81e11c003301f7857444e7c7948 to your computer and use it in GitHub Desktop.
rustc pls
error[E0277]: the trait bound `std::ffi::OsString: std::borrow::Borrow<str>` is not satisfied
--> src/echo.rs:12:52
|
12 | if let Some(val) = state.variables.get(key) {
| ^^^ the trait `std::borrow::Borrow<str>` is not implemented for `std::ffi::OsString`
|
= help: the following implementations were found:
<std::ffi::OsString as std::borrow::Borrow<std::ffi::OsStr>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment