2024-05-21 21:21:26 -07:00
|
|
|
//@ aux-build:reexport-with-anonymous-lifetime-98697.rs
|
2022-06-30 10:35:50 -07:00
|
|
|
//@ ignore-cross-compile
|
2024-05-21 12:28:30 -07:00
|
|
|
#![crate_name = "foo"]
|
2022-06-30 10:35:50 -07:00
|
|
|
|
|
|
|
// When reexporting a function with a HRTB with anonymous lifetimes,
|
|
|
|
// make sure the anonymous lifetimes are not rendered.
|
|
|
|
//
|
|
|
|
// https://github.com/rust-lang/rust/issues/98697
|
|
|
|
|
2024-05-21 21:21:26 -07:00
|
|
|
extern crate reexport_with_anonymous_lifetime_98697;
|
2022-06-30 10:35:50 -07:00
|
|
|
|
2024-06-21 14:03:08 +02:00
|
|
|
//@ has foo/fn.repro.html '//pre[@class="rust item-decl"]/code' 'fn repro<F>()where F: Fn(&str)'
|
|
|
|
//@ !has foo/fn.repro.html '//pre[@class="rust item-decl"]/code' 'for<'
|
2024-05-21 21:21:26 -07:00
|
|
|
pub use reexport_with_anonymous_lifetime_98697::repro;
|
2022-07-04 22:19:53 -07:00
|
|
|
|
2024-06-21 14:03:08 +02:00
|
|
|
//@ has foo/struct.Extra.html '//div[@id="trait-implementations-list"]//h3[@class="code-header"]' 'impl MyTrait<&Extra> for Extra'
|
|
|
|
//@ !has foo/struct.Extra.html '//div[@id="trait-implementations-list"]//h3[@class="code-header"]' 'impl<'
|
2024-05-21 21:21:26 -07:00
|
|
|
pub use reexport_with_anonymous_lifetime_98697::Extra;
|