Skip to content

ICE using associated types: "unbound path" #17956

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
awelkie opened this issue Oct 11, 2014 · 2 comments
Closed

ICE using associated types: "unbound path" #17956

awelkie opened this issue Oct 11, 2014 · 2 comments
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@awelkie
Copy link

awelkie commented Oct 11, 2014

The following code fails with an ICE:

#![feature(associated_types)]
trait ATrait<T> {
    type Output;
    fn return_output() -> <Self as ATrait<T>>::Output;
}

The error:

associated.rs:4:43: 4:44 error: internal compiler error: unbound path path(T)
associated.rs:4     fn return_output() -> <Self as ATrait<T>>::Output;
                                                          ^
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' failed at 'Box<Any>', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/libsyntax/diagnostic.rs:113
@huonw huonw added the I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ label Oct 11, 2014
@retep998
Copy link
Member

Looks like a duplicate of #17388

@ghost
Copy link

ghost commented Oct 28, 2014

@retep998 Indeed, thanks! Closing as a dupe of #17388.

@ghost ghost closed this as completed Oct 28, 2014
lnicola pushed a commit to lnicola/rust that referenced this issue Aug 29, 2024
fix: Fix metadata retrying eating original errors
This issue was closed.
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

3 participants