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

Box accepts multiple lifetime parameters #18423

Closed
nikomatsakis opened this issue Oct 29, 2014 · 2 comments
Closed

Box accepts multiple lifetime parameters #18423

nikomatsakis opened this issue Oct 29, 2014 · 2 comments
Assignees

Comments

@nikomatsakis
Copy link
Contributor

This should not compile:

struct Foo<'a> {
    x: Box<'a, int>
}

pub fn main() {
}
@nikomatsakis
Copy link
Contributor Author

Play link: http://is.gd/Gy3tI6

nikomatsakis added a commit to nikomatsakis/rust that referenced this issue Nov 4, 2014
…,C>`. These paths also bind anonymous regions (or will, once HRTB is fully working).

Fixes rust-lang#18423.
@nikomatsakis nikomatsakis self-assigned this Nov 4, 2014
@nikomatsakis
Copy link
Contributor Author

Fixed as part of PR #18622

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

1 participant