use std::ops::Deref; // Make sure that method probe error reporting doesn't get too tangled up // on this infinite deref impl. See #130224. struct Wrap(T); impl Deref for Wrap { type Target = Wrap>; fn deref(&self) -> &Wrap> { todo!() } } fn main() { Wrap(1).lmao(); //~^ ERROR reached the recursion limit //~| ERROR no method named `lmao` }