summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-json/structs/with_primitives.rs
blob: 9c5a37f3957c03ab2f68eca8b02cbcec0b5c5d8a (plain)
1
2
3
4
5
6
7
8
9
10
// @is "$.index[*][?(@.name=='WithPrimitives')].visibility" \"public\"
// @is "$.index[*][?(@.name=='WithPrimitives')].kind" \"struct\"
// @is "$.index[*][?(@.name=='WithPrimitives')].inner.generics.params[0].name" \"\'a\"
// @is "$.index[*][?(@.name=='WithPrimitives')].inner.generics.params[0].kind.lifetime.outlives" []
// @is "$.index[*][?(@.name=='WithPrimitives')].inner.kind.plain.fields_stripped" true
// @is "$.index[*][?(@.name=='WithPrimitives')].inner.kind.plain.fields" []
pub struct WithPrimitives<'a> {
    num: u32,
    s: &'a str,
}