6 // @is "$.index[*][?(@.name=='const_meth')].inner.header.async" false
7 // @is "$.index[*][?(@.name=='const_meth')].inner.header.const" true
8 // @is "$.index[*][?(@.name=='const_meth')].inner.header.unsafe" false
9 pub const fn const_meth() {}
11 // @is "$.index[*][?(@.name=='nothing_meth')].inner.header.async" false
12 // @is "$.index[*][?(@.name=='nothing_meth')].inner.header.const" false
13 // @is "$.index[*][?(@.name=='nothing_meth')].inner.header.unsafe" false
14 pub fn nothing_meth() {}
16 // @is "$.index[*][?(@.name=='unsafe_meth')].inner.header.async" false
17 // @is "$.index[*][?(@.name=='unsafe_meth')].inner.header.const" false
18 // @is "$.index[*][?(@.name=='unsafe_meth')].inner.header.unsafe" true
19 pub unsafe fn unsafe_meth() {}
21 // @is "$.index[*][?(@.name=='async_meth')].inner.header.async" true
22 // @is "$.index[*][?(@.name=='async_meth')].inner.header.const" false
23 // @is "$.index[*][?(@.name=='async_meth')].inner.header.unsafe" false
24 pub async fn async_meth() {}
26 // @is "$.index[*][?(@.name=='async_unsafe_meth')].inner.header.async" true
27 // @is "$.index[*][?(@.name=='async_unsafe_meth')].inner.header.const" false
28 // @is "$.index[*][?(@.name=='async_unsafe_meth')].inner.header.unsafe" true
29 pub async unsafe fn async_unsafe_meth() {}
31 // @is "$.index[*][?(@.name=='const_unsafe_meth')].inner.header.async" false
32 // @is "$.index[*][?(@.name=='const_unsafe_meth')].inner.header.const" true
33 // @is "$.index[*][?(@.name=='const_unsafe_meth')].inner.header.unsafe" true
34 pub const unsafe fn const_unsafe_meth() {}
36 // It's impossible for a method to be both const and async, so no test for that