Skip to content

Instantly share code, notes, and snippets.

@mbr
Created March 13, 2018 17:19
Show Gist options
  • Save mbr/b0bd4be1d88f00f77563b87ec36bd995 to your computer and use it in GitHub Desktop.
Save mbr/b0bd4be1d88f00f77563b87ec36bd995 to your computer and use it in GitHub Desktop.
error[E0271]: type mismatch resolving `<fn() -> ! {std::process::abort} as core::ops::FnOnce<()>>::Output == T`
--> /home/marc/.cargo/registry/src/github.com-1ecc6299db9ec823/safe_unwrap-0.3.0/src/lib.rs:130:14
|
130 | self.unwrap_or_else(std::process::abort)
| ^^^^^^^^^^^^^^ expected !, found type parameter
|
= note: expected type `!`
found type `T`
error: aborting due to previous error
error: Could not compile `safe_unwrap`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment