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

reference.md: clarify the limitation of type alias on an enum #32083

Merged
merged 1 commit into from
Mar 9, 2016

Conversation

nodakai
Copy link
Contributor

@nodakai nodakai commented Mar 6, 2016

Tentatively define the current behavior as the specification.

Cf. #26264, #28556, #30936

@alexcrichton
Copy link
Member

cc @rust-lang/lang

r? @nikomatsakis

enum E { A }
type F = E;
let _: F = E::A; // OK
// let _: F = F::A; // NG
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"NG"? I don't know what this means, maybe "not good"? Can we just write "Doesn't work" or something like that?

Cf. rust-lang#26264

Signed-off-by: NODA, Kai <nodakai@gmail.com>
@nodakai nodakai force-pushed the reference-scoped-enum-alias branch from affbd76 to 790178f Compare March 8, 2016 00:47
@nodakai
Copy link
Contributor Author

nodakai commented Mar 8, 2016

@nikomatsakis My bad, corrected

@nikomatsakis
Copy link
Contributor

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Mar 8, 2016

📌 Commit 790178f has been approved by nikomatsakis

steveklabnik added a commit to steveklabnik/rust that referenced this pull request Mar 8, 2016
…, r=nikomatsakis

reference.md: clarify the limitation of type alias on an enum

Tentatively define the current behavior as the specification.

Cf. rust-lang#26264, rust-lang#28556, rust-lang#30936
bors added a commit that referenced this pull request Mar 9, 2016
Rollup of 7 pull requests

- Successful merges: #31772, #32083, #32084, #32092, #32099, #32103, #32115
- Failed merges:
@bors bors merged commit 790178f into rust-lang:master Mar 9, 2016
@nodakai nodakai deleted the reference-scoped-enum-alias branch March 12, 2016 09:54
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.

4 participants