Skip to content
New issue

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

OptionBool::ok_or_else doctest fails on beta (1.20) #20

Closed
CAD97 opened this issue Jul 21, 2017 · 3 comments
Closed

OptionBool::ok_or_else doctest fails on beta (1.20) #20

CAD97 opened this issue Jul 21, 2017 · 3 comments

Comments

@CAD97
Copy link
Contributor

CAD97 commented Jul 21, 2017

---- src/lib.rs - OptionBool::ok_or_else (line 422) stdout ----
	error: code relies on type inference rules which are likely to change
 --> <anon>:4:2
  |
4 |  assert_eq!(OptionBool::SomeTrue.ok_or_else(|| panic!()), Ok(true));
  |  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: #[deny(resolve_trait_on_defaulted_unit)] on by default
  = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
  = note: for more information, see issue #39216 <https://github.com/rust-lang/rust/issues/39216>
@CAD97
Copy link
Contributor Author

CAD97 commented Jul 21, 2017

See also rust-lang/rust#39216 (comment)

@CAD97
Copy link
Contributor Author

CAD97 commented Jul 26, 2017

Fixed by #21

@CAD97 CAD97 closed this as completed Jul 26, 2017
@llogiq
Copy link
Owner

llogiq commented Jul 26, 2017

Ah, thank you, I forgot to close this. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants