2022-02-25 13:34:00 -06:00
|
|
|
// ignore-tidy-linelength
|
2022-02-19 02:50:35 -06:00
|
|
|
|
2024-07-19 09:50:47 -05:00
|
|
|
//@ set wham_id = "$.index[*][?(@.name=='Wham')].id"
|
2022-02-25 13:34:00 -06:00
|
|
|
pub trait Wham {}
|
|
|
|
|
2024-07-19 09:50:47 -05:00
|
|
|
//@ is "$.index[*][?(@.name=='one_generic_param_fn')].inner.function.generics.where_predicates" []
|
|
|
|
//@ count "$.index[*][?(@.name=='one_generic_param_fn')].inner.function.generics.params[*]" 1
|
|
|
|
//@ is "$.index[*][?(@.name=='one_generic_param_fn')].inner.function.generics.params[0].name" '"T"'
|
2024-08-04 18:44:35 -05:00
|
|
|
//@ is "$.index[*][?(@.name=='one_generic_param_fn')].inner.function.generics.params[0].kind.type.is_synthetic" false
|
2024-07-19 09:50:47 -05:00
|
|
|
//@ is "$.index[*][?(@.name=='one_generic_param_fn')].inner.function.generics.params[0].kind.type.bounds[0].trait_bound.trait.id" $wham_id
|
2024-08-04 18:44:35 -05:00
|
|
|
//@ is "$.index[*][?(@.name=='one_generic_param_fn')].inner.function.sig.inputs" '[["w", {"generic": "T"}]]'
|
2022-02-25 13:34:00 -06:00
|
|
|
pub fn one_generic_param_fn<T: Wham>(w: T) {}
|
|
|
|
|
2024-07-19 09:50:47 -05:00
|
|
|
//@ is "$.index[*][?(@.name=='one_synthetic_generic_param_fn')].inner.function.generics.where_predicates" []
|
|
|
|
//@ count "$.index[*][?(@.name=='one_synthetic_generic_param_fn')].inner.function.generics.params[*]" 1
|
|
|
|
//@ is "$.index[*][?(@.name=='one_synthetic_generic_param_fn')].inner.function.generics.params[0].name" '"impl Wham"'
|
2024-08-04 18:44:35 -05:00
|
|
|
//@ is "$.index[*][?(@.name=='one_synthetic_generic_param_fn')].inner.function.generics.params[0].kind.type.is_synthetic" true
|
2024-07-19 09:50:47 -05:00
|
|
|
//@ is "$.index[*][?(@.name=='one_synthetic_generic_param_fn')].inner.function.generics.params[0].kind.type.bounds[0].trait_bound.trait.id" $wham_id
|
2024-08-04 18:44:35 -05:00
|
|
|
//@ count "$.index[*][?(@.name=='one_synthetic_generic_param_fn')].inner.function.sig.inputs[*]" 1
|
|
|
|
//@ is "$.index[*][?(@.name=='one_synthetic_generic_param_fn')].inner.function.sig.inputs[0][0]" '"w"'
|
|
|
|
//@ is "$.index[*][?(@.name=='one_synthetic_generic_param_fn')].inner.function.sig.inputs[0][1].impl_trait[0].trait_bound.trait.id" $wham_id
|
2022-02-25 13:34:00 -06:00
|
|
|
pub fn one_synthetic_generic_param_fn(w: impl Wham) {}
|