summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/auxiliary/issue-98697-reexport-with-anonymous-lifetime.rs
blob: 4e55e7ed576302c31bb28948d43d36d7be17cba6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// When reexporting this function, make sure the anonymous lifetimes are not rendered.
///
/// https://github.com/rust-lang/rust/issues/98697
pub fn repro<F>()
where
    F: Fn(&str),
{
    unimplemented!()
}

pub struct Extra;

pub trait MyTrait<T> {
    fn run() {}
}

impl MyTrait<&Extra> for Extra {}