We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This code does not work:
let a = Result::<int, string>::Ok(42); a.is_ok()
It craps out because in is_ok it's doing a match, and it fails to match at all. If the generics weren't there it would work fine.
is_ok
This works, and I'm not sure why:
let a = Result::Ok(42); let b = Result::Ok("test"); a.is_ok() && b.is_ok()
How are we distinguishing between the different Results? There is no visible type information there, and if there had been it would fail.
So generics are certainly not done.
The text was updated successfully, but these errors were encountered:
uberFoo
No branches or pull requests
This code does not work:
It craps out because in
is_ok
it's doing a match, and it fails to match at all. If the generics weren't there it would work fine.This works, and I'm not sure why:
How are we distinguishing between the different Results? There is no visible type information there, and if there had been it would fail.
So generics are certainly not done.
The text was updated successfully, but these errors were encountered: