Skip to content

reference: clarify impl #29317

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

Merged
merged 1 commit into from
Oct 27, 2015
Merged

reference: clarify impl #29317

merged 1 commit into from
Oct 27, 2015

Conversation

matklad
Copy link
Member

@matklad matklad commented Oct 26, 2015

Rust reference is a bit confusing here, because it does not explicitly mention trait objects.

See an example of confusion here https://users.rust-lang.org/t/confusion-about-impls-without-for/3379/2 :)

r? @steveklabnik

Another kind of nominal types in Rust are trait objects, so the following is valid

```rust
trait A {

}

impl A {

}
```
@steveklabnik
Copy link
Member

@bors: r+ rollup

@bors
Copy link
Collaborator

bors commented Oct 26, 2015

📌 Commit 32e4ba8 has been approved by steveklabnik

@steveklabnik
Copy link
Member

Thanks!

bors added a commit that referenced this pull request Oct 27, 2015
Rust reference is a bit confusing here, because it does not explicitly mention trait objects.

See an example of confusion here https://users.rust-lang.org/t/confusion-about-impls-without-for/3379/2 :)

r? @steveklabnik
@bors
Copy link
Collaborator

bors commented Oct 27, 2015

⌛ Testing commit 32e4ba8 with merge 0152a93...

@bors bors merged commit 32e4ba8 into rust-lang:master Oct 27, 2015
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

Successfully merging this pull request may close these issues.

3 participants