rustdoc: add test cases for turning [Vec<T>]
into `[
Vec<T>]
`
#101824
Merged
[Vec<T>]
into `[
Vec<T>]
`
#101824