6 // @has header.json "$.index[*][?(@.name=='nothing_meth')].inner.header" "[]"
7 pub fn nothing_meth() {}
9 // @has - "$.index[*][?(@.name=='const_meth')].inner.header" '["const"]'
10 pub const fn const_meth() {}
12 // @has - "$.index[*][?(@.name=='async_meth')].inner.header" '["async"]'
13 pub async fn async_meth() {}
15 // @count - "$.index[*][?(@.name=='async_unsafe_meth')].inner.header[*]" 2
16 // @has - "$.index[*][?(@.name=='async_unsafe_meth')].inner.header[*]" '"async"'
17 // @has - "$.index[*][?(@.name=='async_unsafe_meth')].inner.header[*]" '"unsafe"'
18 pub async unsafe fn async_unsafe_meth() {}
20 // @count - "$.index[*][?(@.name=='const_unsafe_meth')].inner.header[*]" 2
21 // @has - "$.index[*][?(@.name=='const_unsafe_meth')].inner.header[*]" '"const"'
22 // @has - "$.index[*][?(@.name=='const_unsafe_meth')].inner.header[*]" '"unsafe"'
23 pub const unsafe fn const_unsafe_meth() {}
25 // It's impossible for a method to be both const and async, so no test for that