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

Stack overflow with use of Self in inherent impl on trait #23305

Closed
ghost opened this issue Mar 12, 2015 · 0 comments
Closed

Stack overflow with use of Self in inherent impl on trait #23305

ghost opened this issue Mar 12, 2015 · 0 comments
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@ghost
Copy link

ghost commented Mar 12, 2015

pub trait ToNbt<T> {
    fn new(val: T) -> Self;
}

impl ToNbt<Self> {}

fn main() {}
thread 'rustc' has overflowed its stack
Illegal instruction (core dumped)
playpen: application terminated with error code 132
Program ended.

Playpen: http://is.gd/TStXZ9
Thanks @huon helps.

@steveklabnik steveklabnik added the I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ label Mar 19, 2015
nham pushed a commit to nham/rust that referenced this issue Jun 24, 2015
bors added a commit that referenced this issue Jun 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

1 participant