diff options
| author | Michael Howell <michael@notriddle.com> | 2023-03-30 21:53:11 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2023-04-14 14:55:45 -0700 |
| commit | afee2411e3fd5c6e8b3301fa748a760e01615904 (patch) | |
| tree | acfe106f4aa933d1a4a76f5e1b9104924cfcec25 /tests/rustdoc-js/generics-nested.rs | |
| parent | 276fa294809e914b1d04192392d256814aa5ce1a (diff) | |
| download | rust-afee2411e3fd5c6e8b3301fa748a760e01615904.tar.gz rust-afee2411e3fd5c6e8b3301fa748a760e01615904.zip | |
rustdoc-search: add support for nested generics
Diffstat (limited to 'tests/rustdoc-js/generics-nested.rs')
| -rw-r--r-- | tests/rustdoc-js/generics-nested.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/rustdoc-js/generics-nested.rs b/tests/rustdoc-js/generics-nested.rs new file mode 100644 index 00000000000..5140422e384 --- /dev/null +++ b/tests/rustdoc-js/generics-nested.rs @@ -0,0 +1,19 @@ +pub struct Out<A, B = ()> { + a: A, + b: B, +} + +pub struct First<In = ()> { + in_: In, +} + +pub struct Second; + +// Out<First<Second>> +pub fn alef() -> Out<First<Second>> { + loop {} +} + +pub fn bet() -> Out<First, Second> { + loop {} +} |
