Created
March 14, 2017 03:29
-
-
Save trashbyte/61dd6fc23dc323e1b89f1100c1f603b6 to your computer and use it in GitHub Desktop.
rust???
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum IResult<I = u32, E = u32> { | |
Done(I), | |
Error(E) | |
} | |
fn main() { | |
IResult::Done(0); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rustc busted.rs | |
error[E0282]: unable to infer enough type information about `E` | |
--> busted.rs:7:2 | |
| | |
7 | IResult::Done(0); | |
| ^^^^^^^^^^^^^ cannot infer type for `E` | |
| | |
= note: type annotations or generic parameter binding required | |
error: aborting due to previous error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment