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

ICE: impl declared before trait with associated item #19557

Closed
nrc opened this issue Dec 5, 2014 · 2 comments
Closed

ICE: impl declared before trait with associated item #19557

nrc opened this issue Dec 5, 2014 · 2 comments
Labels
A-associated-items Area: Associated items such as associated types and consts.

Comments

@nrc
Copy link
Member

nrc commented Dec 5, 2014

#![feature(associated_types)]

impl Foo for int {
    type A = uint;
}

pub trait Foo {
    type A;
}

pub fn main() {}
task 'rustc' panicked at 'No def'n found for DefId { krate: 0, node: 13 } in tcx.impl_or_trait_items', /home/ncameron/rust/src/librustc/middle/ty.rs:4310

stack backtrace:
   1:     0x7f1940943440 - rt::backtrace::imp::write::h0f67e562de667d35Gay
   2:     0x7f19409478b0 - failure::on_fail::h58a0ff7a5099a6000Cy
   3:     0x7f19405fec80 - unwind::begin_unwind_inner::ha57e93b5d4f1f80d1Qc
   4:     0x7f19405fe7e0 - unwind::begin_unwind_fmt::ha9fc4b78efd146fccOc
   5:     0x7f193f4ead30 - middle::ty::impl_or_trait_item::h55c274f1e1ee9b78Xl8
   6:     0x7f193f95cc40 - middle::typeck::collect::ImplCtxt<'a, 'tcx>.AstConv<'tcx>::associated_type_binding::hcc097ca1cd60b433DCK
   7:     0x7f193f994750 - middle::typeck::astconv::create_substs_for_ast_path::h12687352172379627279
   8:     0x7f193f87e830 - middle::typeck::collect::convert::h51f7fcfe7a681561cXK
   9:     0x7f193f878890 - middle::typeck::collect::collect_item_types::hf182a64ac9f0ea5eORJ
  10:     0x7f193f751d10 - util::common::time::h13554638601947919603
  11:     0x7f193f751310 - middle::typeck::check_crate::h9b48aa6c28528690bQP
  12:     0x7f1940f43120 - driver::driver::phase_3_run_analysis_passes::h938db519a111a7574nS
  13:     0x7f1940f3c410 - driver::driver::compile_input::h282769b6ecf9b18b44R
  14:     0x7f1940fb9260 - driver::run::closure.61472
  15:     0x7f1940fc6290 - task::TaskBuilder::try_future::closure.62104
  16:     0x7f194093a910 - task::TaskBuilder::spawn_internal::closure.31177
  17:     0x7f1940600b90 - task::Task::spawn::closure.5779
  18:     0x7f194065b090 - rust_try_inner
  19:     0x7f194065b080 - rust_try
  20:     0x7f19405fe540 - unwind::try::heee2f446c60ea967mFc
  21:     0x7f1940600a40 - task::Task::run::h7f1d4c2e55b46abdeOb
  22:     0x7f1940600810 - task::Task::spawn::closure.5755
  23:     0x7f1940604350 - thread::thread_start::hc7adf40c9d3bfc57h6b
  24:     0x7f193b83a0c0 - start_thread
  25:     0x7f19402bef89 - __clone
  26:                0x0 - <unknown>
@nrc nrc added the A-associated-items Area: Associated items such as associated types and consts. label Dec 5, 2014
@japaric
Copy link
Member

japaric commented Dec 5, 2014

Duplicate of #18611 ?

@nrc
Copy link
Member Author

nrc commented Dec 5, 2014

Yes, closing as dup

@nrc nrc closed this as completed Dec 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-associated-items Area: Associated items such as associated types and consts.
Projects
None yet
Development

No branches or pull requests

2 participants