diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-09-18 17:20:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-18 17:20:57 +0200 |
| commit | b7ab58eb4d6bc12907f2a13c490ac26d53356c85 (patch) | |
| tree | 7ad1c3ace059bba8b56bd09cd51e213b4d10ffbc /tests/ui/traits/solver-cycles/129541-recursive-struct.rs | |
| parent | fd852f4bee1e8cc7a0d5a287f055b03192656571 (diff) | |
| parent | 6912631d3ead427848a559ef5af66ab6f30e79ed (diff) | |
| download | rust-b7ab58eb4d6bc12907f2a13c490ac26d53356c85.tar.gz rust-b7ab58eb4d6bc12907f2a13c490ac26d53356c85.zip | |
Rollup merge of #146597 - modhanami:add-struct-tail-recursion-limit-span, r=oli-obk
Add span for struct tail recursion limit error Fixes rust-lang/rust#135629 Changes 1. Add span to RecursionLimitReached 2. Add ObligationCause parameter to struct_tail_raw 4. Update call sites to pass nearby ObligationCause or create one 5. Update affected .stderr
Diffstat (limited to 'tests/ui/traits/solver-cycles/129541-recursive-struct.rs')
| -rw-r--r-- | tests/ui/traits/solver-cycles/129541-recursive-struct.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/ui/traits/solver-cycles/129541-recursive-struct.rs b/tests/ui/traits/solver-cycles/129541-recursive-struct.rs index 723179302e3..c5c2c27b282 100644 --- a/tests/ui/traits/solver-cycles/129541-recursive-struct.rs +++ b/tests/ui/traits/solver-cycles/129541-recursive-struct.rs @@ -1,3 +1,4 @@ +//~ ERROR reached the recursion limit finding the struct tail for `<[Hello] as Normalize>::Assoc` // Regression test for #129541 //@ revisions: unique_curr unique_next multiple_curr multiple_next @@ -24,5 +25,3 @@ struct Hello { } fn main() {} - -//~? ERROR reached the recursion limit finding the struct tail for `<[Hello] as Normalize>::Assoc` |
