]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-json/structs/with_generics.rs
Rollup merge of #106797 - FawazTirmizi:dev/issues/104284, r=bjorn3
[rust.git] / tests / rustdoc-json / structs / with_generics.rs
1 use std::collections::HashMap;
2
3 // @is "$.index[*][?(@.name=='WithGenerics')].visibility" \"public\"
4 // @is "$.index[*][?(@.name=='WithGenerics')].kind" \"struct\"
5 // @is "$.index[*][?(@.name=='WithGenerics')].inner.generics.params[0].name" \"T\"
6 // @is "$.index[*][?(@.name=='WithGenerics')].inner.generics.params[0].kind.type.bounds" []
7 // @is "$.index[*][?(@.name=='WithGenerics')].inner.generics.params[1].name" \"U\"
8 // @is "$.index[*][?(@.name=='WithGenerics')].inner.generics.params[1].kind.type.bounds" []
9 // @is "$.index[*][?(@.name=='WithGenerics')].inner.kind.plain.fields_stripped" true
10 // @is "$.index[*][?(@.name=='WithGenerics')].inner.kind.plain.fields" []
11 pub struct WithGenerics<T, U> {
12     stuff: Vec<T>,
13     things: HashMap<U, U>,
14 }