]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/struct-arg-pattern.rs
Fix problem noticed in PR106859 with char -> u8 suggestion
[rust.git] / tests / rustdoc / struct-arg-pattern.rs
1 #![crate_name = "foo"]
2
3 struct BodyId {
4     hir_id: usize,
5 }
6
7 // @has 'foo/fn.body_owner.html' '//pre[@class="rust item-decl"]' 'pub fn body_owner(_: BodyId)'
8 pub fn body_owner(BodyId { hir_id }: BodyId) {
9     // ...
10 }