Test for associated types ICE

closes #19121

r?

This won't actually pass until https://github.com/rust-lang/rust/pull/19391 lands