summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/struct-arg-pattern.rs
blob: 6f06c8c9c49965f1ee4199ed27e169401fcf6eab (plain)
1
2
3
4
5
6
7
8
9
10
#![crate_name = "foo"]

struct BodyId {
    hir_id: usize,
}

// @has 'foo/fn.body_owner.html' '//pre[@class="rust item-decl"]' 'pub fn body_owner(_: BodyId)'
pub fn body_owner(BodyId { hir_id }: BodyId) {
    // ...
}