diff options
| author | Michael Howell <michael@notriddle.com> | 2023-05-25 12:58:36 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2023-06-10 13:52:54 -0700 |
| commit | 2e569274d3ecbbc74d9c5b3a89a68ee09c19ef2f (patch) | |
| tree | 020c3d9d28407927968cd42623fec0033d252013 /tests/rustdoc-js/slice-array.rs | |
| parent | 3ed4c17d90e0d0c46281fc3503106080b39985b2 (diff) | |
| download | rust-2e569274d3ecbbc74d9c5b3a89a68ee09c19ef2f.tar.gz rust-2e569274d3ecbbc74d9c5b3a89a68ee09c19ef2f.zip | |
rustdoc: search for slices and arrays by type with `[]`
Part of #60485
Diffstat (limited to 'tests/rustdoc-js/slice-array.rs')
| -rw-r--r-- | tests/rustdoc-js/slice-array.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/rustdoc-js/slice-array.rs b/tests/rustdoc-js/slice-array.rs index 2523b21cfaa..15ac4294f3d 100644 --- a/tests/rustdoc-js/slice-array.rs +++ b/tests/rustdoc-js/slice-array.rs @@ -14,3 +14,5 @@ pub trait TraitCat {} pub trait TraitDog {} pub fn gamma<T: TraitCat + TraitDog>(t: [T; 32]) {} + +pub fn epsilon<T: TraitCat + TraitDog>(t: &[T]) {} |
