-
Notifications
You must be signed in to change notification settings - Fork 13k
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
inverse<T>() example in the Generics/Traits documentation does not work in beta 1.0.0 #24325
Comments
steveklabnik
added a commit
to steveklabnik/rust
that referenced
this issue
Apr 18, 2015
Let's talk about generics first, since we use traits to bound them in funtions. Partially addresses rust-lang#24325
steveklabnik
added a commit
to steveklabnik/rust
that referenced
this issue
Apr 18, 2015
steveklabnik
added a commit
to steveklabnik/rust
that referenced
this issue
Apr 20, 2015
Let's talk about generics first, since we use traits to bound them in funtions. Partially addresses rust-lang#24325
steveklabnik
added a commit
to steveklabnik/rust
that referenced
this issue
Apr 20, 2015
steveklabnik
added a commit
to steveklabnik/rust
that referenced
this issue
Apr 20, 2015
Let's talk about generics first, since we use traits to bound them in funtions. Partially addresses rust-lang#24325 Fixes rust-lang#24271
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The inverse() function introduced in the Generics chapter and 'solved' in the Traits chapter does not actually work. Even after adding the #![feature(std_misc)] attribute to the crate, it refuses to compile:
yields:
The solution should look like this:
The text was updated successfully, but these errors were encountered: