mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-29 19:47:38 +00:00
16 lines
638 B
Rust
16 lines
638 B
Rust
![]() |
use std::collections::HashMap;
|
||
|
|
||
|
// @has with_generics.json "$.index.['0:4'].name" \"WithGenerics\"
|
||
|
// @has - "$.index.['0:4'].visibility" \"public\"
|
||
|
// @has - "$.index.['0:4'].kind" \"struct\"
|
||
|
// @has - "$.index.['0:4'].inner.generics.params[0].name" \"T\"
|
||
|
// @has - "$.index.['0:4'].inner.generics.params[0].kind.type"
|
||
|
// @has - "$.index.['0:4'].inner.generics.params[1].name" \"U\"
|
||
|
// @has - "$.index.['0:4'].inner.generics.params[1].kind.type"
|
||
|
// @has - "$.index.['0:4'].inner.struct_type" \"plain\"
|
||
|
// @has - "$.index.['0:4'].inner.fields_stripped" true
|
||
|
pub struct WithGenerics<T, U> {
|
||
|
stuff: Vec<T>,
|
||
|
things: HashMap<U, U>,
|
||
|
}
|