//@ revisions: current next //@ ignore-compare-mode-next-solver (explicit revisions) //@[next] compile-flags: -Znext-solver //@ check-pass // Check that negative impls for traits with associated types // do not result in an ICE when trying to normalize. #![feature(negative_impls)] trait Trait { type Assoc; } struct Local(T); impl !Trait for Local {} impl Trait for Local { type Assoc = i32; } trait NoOverlap {} impl> NoOverlap for T {} impl NoOverlap for Local {} fn main() {}