-
Notifications
You must be signed in to change notification settings - Fork 278
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
Move the list of coercions to the reference #290
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a few edits
src/coercions.md
Outdated
|
||
Coercion is allowed between the following types: | ||
## Cases where coercions do not perform |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## Cases where coercions do not perform | |
## Cases where coercions do not happen |
(but I would drop the subheading altogether -- this is already a very short page now)
src/coercions.md
Outdated
@@ -67,20 +25,21 @@ fn main() { | |||
} | |||
``` | |||
|
|||
which fails like the following: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
which fails like the following: | |
which fails as follows: |
src/coercions.md
Outdated
`U`, that does not constitute an implementation for `T`. For example, the | ||
following will not type check, even though it is OK to coerce `t` to `&T` and | ||
there is an impl for `&T`: | ||
Note that we do not perform coercions when matching traits (except for receivers, see below). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that we do not perform coercions when matching traits (except for receivers, see below). | |
Note that we do not perform coercions when matching traits (except for receivers, see the next page). |
This is a pre-existing error, but still should be fixed.
Thanks! Applied all the review comments. |
Helps #279: