summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc/struct-arg-pattern.rs
blob: 3c0369e3d3413e221f775561555dd3e37b9d2c28 (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' '//*[@class="rust fn"]' 'pub fn body_owner(_: BodyId)'
pub fn body_owner(BodyId { hir_id }: BodyId) {
    // ...
}