]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-json/fns/pattern_arg.rs
Rollup merge of #104965 - zacklukem:p-option-as_ref-docs, r=scottmcm
[rust.git] / tests / rustdoc-json / fns / pattern_arg.rs
1 // @is "$.index[*][?(@.name=='fst')].inner.decl.inputs[0][0]" '"(x, _)"'
2 pub fn fst<X, Y>((x, _): (X, Y)) -> X {
3     x
4 }
5
6 // @is "$.index[*][?(@.name=='drop_int')].inner.decl.inputs[0][0]" '"_"'
7 pub fn drop_int(_: i32) {}