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
#![feature(associated_types)]implXforf64{typeY = int;}traitX{typeY;}//impl X for f64 { type Y = int; }fnmain(){}
gives
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. 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
thread 'rustc' panicked at 'No def'n found for DefId { krate: 0, node: 13 } in tcx.impl_or_trait_items', /build/rust-git/src/rust/src/librustc/middle/ty.rs:4801
Swapping the comments on the impls removes the ICE. Similar to #18611.
(Side note: the above test case started as 46KB of source, but creduce only took two minutes to reduce to basically the above; very cool.)