diff options
| author | León Orell Valerian Liehr <me@fmease.dev> | 2025-04-16 12:56:49 +0200 |
|---|---|---|
| committer | León Orell Valerian Liehr <me@fmease.dev> | 2025-04-17 08:55:53 +0200 |
| commit | 82ff0a0e6a4be3aab167446ef1529018aa3f1fd1 (patch) | |
| tree | 6aadc6bc62e53ae9b993be75e013f5e343e6d5a2 /tests/rustdoc/inline_cross/fn-ptr-ty.rs | |
| parent | 62146748d8b422fcbeb4b0c6e02a8e7a576f4909 (diff) | |
| download | rust-82ff0a0e6a4be3aab167446ef1529018aa3f1fd1.tar.gz rust-82ff0a0e6a4be3aab167446ef1529018aa3f1fd1.zip | |
rustdoc: Properly clean fn params in all contexts
Diffstat (limited to 'tests/rustdoc/inline_cross/fn-ptr-ty.rs')
| -rw-r--r-- | tests/rustdoc/inline_cross/fn-ptr-ty.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/rustdoc/inline_cross/fn-ptr-ty.rs b/tests/rustdoc/inline_cross/fn-ptr-ty.rs new file mode 100644 index 00000000000..01059622521 --- /dev/null +++ b/tests/rustdoc/inline_cross/fn-ptr-ty.rs @@ -0,0 +1,12 @@ +// Make sure that we print the higher-ranked parameters of cross-crate function pointer types. +// They should be rendered exactly as the user wrote it, i.e., in source order and with unused +// parameters present, not stripped. + +//@ aux-crate:fn_ptr_ty=fn-ptr-ty.rs +//@ edition: 2021 +#![crate_name = "user"] + +//@ has user/type.F.html +//@ has - '//*[@class="rust item-decl"]//code' \ +// "for<'z, 'a, '_unused> fn(&'z for<'b> fn(&'b str), &'a ()) -> &'a ();" +pub use fn_ptr_ty::F; |
