Skip to content

Recursive trait definition crashes rustc #14754

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
m10e opened this issue Jun 8, 2014 · 1 comment
Closed

Recursive trait definition crashes rustc #14754

m10e opened this issue Jun 8, 2014 · 1 comment

Comments

@m10e
Copy link

m10e commented Jun 8, 2014

Recursive trait definition crashes rustc.

rust --version
rustc 0.11.0-pre-nightly (7580ef9 2014-06-08 00:46:57 -0700)
host: x86_64-apple-darwin

rustc main.rs
task 'rustc' has overflowed its stack
Illegal instruction: 4

// --- main.rs

trait A<B: A> {}
fn main() {}
@alexcrichton
Copy link
Member

Closing as a dupe of #11824

bors added a commit to rust-lang-ci/rust that referenced this issue Jun 5, 2023
Add `moved-out-of-ref` diagnostic

This is marked as experimental, since spans are terrible, there are some false positives due rust-lang#14754, and it doesn't play well with unknown types. But I hope we can soon lift it.
bors added a commit to rust-lang-ci/rust that referenced this issue Jun 5, 2023
Handle match scrutinee in closure captures

fix rust-lang#14754
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

2 participants