diff options
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; |
