diff options
| author | Alan Egerton <eggyal@gmail.com> | 2021-04-05 00:29:43 +0100 |
|---|---|---|
| committer | Alan Egerton <eggyal@gmail.com> | 2021-04-05 00:29:43 +0100 |
| commit | 14fac683289dcd53625544edd3372e5fc737c7ed (patch) | |
| tree | e7ce8593b80e101ef2c80b682417e777539a378d /src/test/rustdoc/struct-arg-pattern.rs | |
| parent | 01be6dd37a41c2b10be2ca815b9afa509c7f737a (diff) | |
| download | rust-14fac683289dcd53625544edd3372e5fc737c7ed.tar.gz rust-14fac683289dcd53625544edd3372e5fc737c7ed.zip | |
Renamed test
Diffstat (limited to 'src/test/rustdoc/struct-arg-pattern.rs')
| -rw-r--r-- | src/test/rustdoc/struct-arg-pattern.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/rustdoc/struct-arg-pattern.rs b/src/test/rustdoc/struct-arg-pattern.rs new file mode 100644 index 00000000000..3c0369e3d34 --- /dev/null +++ b/src/test/rustdoc/struct-arg-pattern.rs @@ -0,0 +1,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) { + // ... +} |
