1 // @has "$.index[*][?(@.name=='Foo')]"
3 // @has "$.index[*][?(@.name=='no_self')].inner.has_body" false
5 // @has "$.index[*][?(@.name=='move_self')].inner.has_body" false
7 // @has "$.index[*][?(@.name=='ref_self')].inner.has_body" false
10 // @has "$.index[*][?(@.name=='no_self_def')].inner.has_body" true
12 // @has "$.index[*][?(@.name=='move_self_def')].inner.has_body" true
13 fn move_self_def(self) {}
14 // @has "$.index[*][?(@.name=='ref_self_def')].inner.has_body" true
15 fn ref_self_def(&self) {}
18 pub trait Bar: Clone {
19 // @has "$.index[*][?(@.name=='method')].inner.has_body" false
20 fn method(&self, param: usize);