2022-03-11 13:11:23 -06:00
|
|
|
// ignore-tidy-linelength
|
|
|
|
|
2024-07-19 09:50:47 -05:00
|
|
|
//@ count "$.index[*][?(@.name=='foo')].inner.function.generics.params[*]" 3
|
|
|
|
//@ is "$.index[*][?(@.name=='foo')].inner.function.generics.where_predicates" []
|
|
|
|
//@ is "$.index[*][?(@.name=='foo')].inner.function.generics.params[0].name" \"\'a\"
|
|
|
|
//@ is "$.index[*][?(@.name=='foo')].inner.function.generics.params[1].name" \"\'b\"
|
|
|
|
//@ is "$.index[*][?(@.name=='foo')].inner.function.generics.params[2].name" '"T"'
|
|
|
|
//@ is "$.index[*][?(@.name=='foo')].inner.function.generics.params[0].kind.lifetime.outlives" []
|
|
|
|
//@ is "$.index[*][?(@.name=='foo')].inner.function.generics.params[1].kind.lifetime.outlives" [\"\'a\"]
|
|
|
|
//@ is "$.index[*][?(@.name=='foo')].inner.function.generics.params[2].kind.type.default" null
|
|
|
|
//@ count "$.index[*][?(@.name=='foo')].inner.function.generics.params[2].kind.type.bounds[*]" 1
|
|
|
|
//@ is "$.index[*][?(@.name=='foo')].inner.function.generics.params[2].kind.type.bounds[0].outlives" \"\'b\"
|
2024-08-04 18:44:35 -05:00
|
|
|
//@ is "$.index[*][?(@.name=='foo')].inner.function.sig.inputs[0][1].borrowed_ref.lifetime" \"\'a\"
|
|
|
|
//@ is "$.index[*][?(@.name=='foo')].inner.function.sig.inputs[0][1].borrowed_ref.is_mutable" false
|
|
|
|
//@ is "$.index[*][?(@.name=='foo')].inner.function.sig.inputs[0][1].borrowed_ref.type.borrowed_ref.lifetime" \"\'b\"
|
|
|
|
//@ is "$.index[*][?(@.name=='foo')].inner.function.sig.inputs[0][1].borrowed_ref.type.borrowed_ref.is_mutable" false
|
|
|
|
//@ is "$.index[*][?(@.name=='foo')].inner.function.sig.inputs[0][1].borrowed_ref.type.borrowed_ref.type.generic" \"T\"
|
2022-03-11 13:11:23 -06:00
|
|
|
pub fn foo<'a, 'b: 'a, T: 'b>(_: &'a &'b T) {}
|