//@ check-pass // Test that we use `sup` not `eq` during method probe, since this has an effect // on the leak check. This is (conceptually) minimized from a crater run for // `wrend 0.3.6`. use std::ops::Deref; struct A; impl Deref for A { type Target = B; fn deref(&self) -> &::Target { todo!() } } struct B(T); impl B { fn method(&self) {} } fn main() { A.method(); }