Skip to content

Error when a type parameter name is given parameters itself #1687

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

Closed
marijnh opened this issue Jan 27, 2012 · 1 comment
Closed

Error when a type parameter name is given parameters itself #1687

marijnh opened this issue Jan 27, 2012 · 1 comment
Labels
A-type-system Area: Type system

Comments

@marijnh
Copy link
Contributor

marijnh commented Jan 27, 2012

Currently we ignore the bogus <int, bool> in the type below. I think this never makes sense, and should simply result in an error.

fn foo<T>(_x: T<int, bool>) {}
@ghost ghost assigned marijnh Jan 31, 2012
@marijnh
Copy link
Contributor Author

marijnh commented Feb 6, 2012

Handled by one of the changes in e0fa5cd

@marijnh marijnh closed this as completed Feb 6, 2012
@marijnh marijnh removed their assignment Jun 16, 2014
bors pushed a commit to rust-lang-ci/rust that referenced this issue Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-type-system Area: Type system
Projects
None yet
Development

No branches or pull requests

1 participant