We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I tried pulling the old Java enum generics cleverness on rustc, and depending on the syntax used it either works as expected or plainly crashes.
This works just fine:
trait A<T> where T: A<T> {}
However this really upsets the compiler:
trait A<T: A<T>> {}
$ RUST_BACKTRACE=1 rustc src/lib.rs --crate-type lib thread 'rustc' has overflowed its stack Illegal instruction
$ rustc --version --verbose rustc 1.0.0-nightly (b63cee4a1 2015-02-14 17:01:11 +0000) binary: rustc commit-hash: b63cee4a11fcfecf20ed8419bc3bd6859e6496bc commit-date: 2015-02-14 17:01:11 +0000 host: x86_64-unknown-linux-gnu release: 1.0.0-nightly
$ uname -a Linux rust-m2 3.13.0-45-generic #74+7.0trisquel2 SMP Sat Jan 31 14:07:55 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered:
Is this a dup of #12644 ?
Sorry, something went wrong.
The code currently compiles, so I believe this issue can be closed.
I'll add a regression test
Add regression test for rust-lang#22375
425871b
Closes rust-lang#22375
Auto merge of #26536 - frewsxcv:regression-test-22375, r=alexcrichton
e2c273f
Closes #22375
No branches or pull requests
I tried pulling the old Java enum generics cleverness on rustc, and depending on the syntax used it either works as expected or plainly crashes.
This works just fine:
However this really upsets the compiler:
The text was updated successfully, but these errors were encountered: