Open
Description
For example in https://github.com/rust-lang/rust/blob/master/tests/ui/infinite/infinite-struct.rs we get an error like
error: reached the recursion limit finding the struct tail for `Take`
|
= help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]`
We could pass in the obligation cause to struct_tail_raw
and use its span for the main message and report a note for the obligation
Originally posted by @oli-obk in #135464 (comment)