2023-10-03 17:16:51 +02:00
|
|
|
// 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.
|
|
|
|
|
2025-04-16 12:56:49 +02:00
|
|
|
//@ aux-crate:fn_ptr_ty=fn-ptr-ty.rs
|
2023-10-03 17:16:51 +02:00
|
|
|
//@ edition: 2021
|
|
|
|
#![crate_name = "user"]
|
|
|
|
|
2024-06-21 14:03:08 +02:00
|
|
|
//@ has user/type.F.html
|
|
|
|
//@ has - '//*[@class="rust item-decl"]//code' \
|
2025-04-16 12:56:49 +02:00
|
|
|
// "for<'z, 'a, '_unused> fn(&'z for<'b> fn(&'b str), &'a ()) -> &'a ();"
|
|
|
|
pub use fn_ptr_ty::F;
|