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

Rustc Stack overflow checking "cyclic" bounds in traits #17267

Closed
Ericson2314 opened this issue Sep 15, 2014 · 1 comment
Closed

Rustc Stack overflow checking "cyclic" bounds in traits #17267

Ericson2314 opened this issue Sep 15, 2014 · 1 comment

Comments

@Ericson2314
Copy link
Contributor

Minimal triggering program:

// any combo of Foo and Bar declarations crashes

trait Foo<A> where A: Bar<Self> {}
trait Bar<B> where B: Foo<Self> {}

//trait Foo<A: Bar<Self>> {}
//trait Bar<B: Foo<Self>> {}

// to avoid warning (but stack overflows after warning)
pub fn main() {}

Platform (though I doubt it matters):

# rustc --version
rustc 0.12.0-pre-nightly (ccae356ac 2014-09-12 23:30:54 +0000)
# uname -a    
Linux /*hostname*/ 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u3 x86_64 GNU/Linux
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