rust/tests/rustdoc/struct-arg-pattern.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
219 B
Rust
Raw Normal View History

#![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) {
// ...
}