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
The following program
use std::mem; pub struct S<T: Tr> { pub f: <T as Tr>::I, } pub trait Tr { type I: Tr; } impl<T: Tr> Tr for S<T> { type I = S<S<T>>; } impl Tr for () { type I = (); } fn foo<T: Tr>() -> usize { mem::size_of::<S<T>>() } fn main() { println!("{}", foo::<S<()>>()); }
generates a trans-time stack overflow.
The text was updated successfully, but these errors were encountered:
Can confirm this is still an issue
~/Downloads $ rustc --version rustc 1.0.0-beta.2 (e9080ec39 2015-04-16) (built 2015-04-16)
~/Downloads $ rustc test.rs thread 'rustc' has overflowed its stack fish: Job 1, 'rustc test.rs ' terminated by signal SIGILL (Illegal instruction)
Sorry, something went wrong.
This is somewhat distinct from #26548, as it creates an irregular type without selection errors.
actually, not really.
1220e01
No branches or pull requests
The following program
generates a trans-time stack overflow.
The text was updated successfully, but these errors were encountered: