You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The version is rustc 0.12.0-nightly (9508faa22 2014-09-17 23:45:36 +0000)
Code:
trait Foo<T> {
type Bar;
fn get_bar() -> <Self as Foo<T>>::Bar;
}
Error:
C:\Users\Tomaka17\Projets\test\src\main.rs:5:34: 5:35 error: internal compiler e
rror: unbound path path(T)
C:\Users\Tomaka17\Projets\test\src\main.rs:5 fn get_bar() -> <Self as Foo<T>
>::Bar;
^
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-bugr
eport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' failed at 'Box<Any>', C:\bot\slave\nightly-win32\build\src\libsynta
x\ast_util.rs:751
(because of some issues with my shell I can't print a backtrace for now)
Activity
[-]ICE with associated types[/-][+]ICE with associated types: unbound path[/+]japaric commentedon Sep 19, 2014
Backtrace:
Version:
According to
-Z time-passes, the ICE occurs during the "type collecting" phase.cc @pcwalton
carllerche commentedon Nov 8, 2014
I think this may be the primary issue that I am hitting trying to use associated types at the moment.
emberian commentedon Nov 8, 2014
Me too:
gives:
nikomatsakis commentedon Nov 8, 2014
I have a fix for this issue but it requires PR #18743. I'll open the PR once that lands.
nikomatsakis commentedon Nov 8, 2014
Branch is https://github.com/nikomatsakis/rust/tree/issue-17388-unbound-path-assoc-type
auto merge of #18868 : nikomatsakis/rust/issue-17388-unbound-path-ass…