0
0
mirror of https://github.com/rust-lang/rust.git synced 2024-11-28 21:12:18 +01:00
rust/tests/rustdoc/struct-arg-pattern.rs
2024-06-24 11:08:41 +02:00

11 lines
219 B
Rust

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