Skip to content

stackoverflow on "recursive" traits #17045

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
reem opened this issue Sep 6, 2014 · 1 comment
Closed

stackoverflow on "recursive" traits #17045

reem opened this issue Sep 6, 2014 · 1 comment

Comments

@reem
Copy link
Contributor

reem commented Sep 6, 2014

Playpen: http://is.gd/XdDyHg

Inline:

pub trait Editor<Cntx> where Cntx: Context<Self> {}

pub trait Context<Edtr> where Edtr: Editor<Self> {}

Failure:

task 'rustc' has overflowed its stack
@reem reem changed the title rustc stackoverflow on "recursive" traits stackoverflow on "recursive" traits Sep 6, 2014
@jdm
Copy link
Contributor

jdm commented Sep 6, 2014

Duplicate of #11824.

@jdm jdm closed this as completed Sep 6, 2014
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