summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/struct-arg-pattern.rs
blob: 3bfb43a0bef2c7fed5758002ec0bf30484a185ce (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' '//div[@class="item-decl"]/pre[@class="rust"]' 'pub fn body_owner(_: BodyId)'
pub fn body_owner(BodyId { hir_id }: BodyId) {
    // ...
}