Skip to content

Infinite loop when building recursive type #33180

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
melon3r opened this issue Apr 24, 2016 · 2 comments
Closed

Infinite loop when building recursive type #33180

melon3r opened this issue Apr 24, 2016 · 2 comments

Comments

@melon3r
Copy link

melon3r commented Apr 24, 2016

pub struct X {
 a : X,
 b : X
}

This causes an infinite loop when building, unlike:

pub struct X {
 a : X
}

where you get a error: recursive typeXhas infinite size [E0072].

This happens on stable rustc 1.8.0 (db2939409 2016-04-11).

@jonas-schievink
Copy link
Contributor

This is fixed on nightly. Please check if bugs exist on the current nightly before opening an issue :)

@melon3r
Copy link
Author

melon3r commented Apr 24, 2016

I see, sorry.

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