//@ check-pass #![feature(with_negative_coherence)] use std::ops::DerefMut; trait Foo {} impl Foo for T {} impl Foo for &U {} fn main() {}