diff options
| author | Noah Lev <camelidcamel@gmail.com> | 2021-12-28 13:15:02 -0800 |
|---|---|---|
| committer | Noah Lev <camelidcamel@gmail.com> | 2021-12-28 14:09:20 -0800 |
| commit | 908a9d4aad61f4b8108ff91ae42f76e67dec5148 (patch) | |
| tree | 24bc1f60ae9b3c73f464a514727a12686eae175b /src/test/rustdoc-ui/search-index-generics-recursion-bug-issue-59502.rs | |
| parent | 7d1ec648914d59a6620ed0dcc2ed60c86b53f189 (diff) | |
| download | rust-908a9d4aad61f4b8108ff91ae42f76e67dec5148.tar.gz rust-908a9d4aad61f4b8108ff91ae42f76e67dec5148.zip | |
Add regression test for #59502
This issue was fixed using a hacky recursion "fuel" argument, but the issue was never minimized nor was a regression test added. The underlying bug is still unfixed, so this test should help with fixing it and removing the `recurse` hack.
Diffstat (limited to 'src/test/rustdoc-ui/search-index-generics-recursion-bug-issue-59502.rs')
| -rw-r--r-- | src/test/rustdoc-ui/search-index-generics-recursion-bug-issue-59502.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/rustdoc-ui/search-index-generics-recursion-bug-issue-59502.rs b/src/test/rustdoc-ui/search-index-generics-recursion-bug-issue-59502.rs new file mode 100644 index 00000000000..ce51556dd41 --- /dev/null +++ b/src/test/rustdoc-ui/search-index-generics-recursion-bug-issue-59502.rs @@ -0,0 +1,11 @@ +// check-pass + +// Minimization of issue #59502 + +trait MyTrait<T> { + type Output; +} + +pub fn pow<T: MyTrait<T, Output = T>>(arg: T) -> T { + arg +} |
