Open
Description
The following takes an unknown, potentially infinite amount of time greater than 10 minutes to compile:
struct S<T>(T);
impl<T> std::ops::Deref for S<T> {
type Target = S<(T,T)>;
fn deref(&self) -> &Self::Target {
self.thing()
}
}
As @rkruppe pointed out on Discord,
Most places in rustc are supposed to have limits to stop them from going in circles forever (or just for a very long time), so at first glance I'd consider this a bug