about summary refs log tree commit diff
path: root/tests/rustdoc/generic-associated-types/gat-elided-lifetime-94683.rs
blob: c1cacaf3f1158f24e0b96b6378c818e5f3f1ebf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// https://github.com/rust-lang/rust/issues/94683
#![crate_name = "foo"]

pub trait Trait {
    type Gat<'a>;
}

// Make sure that the elided lifetime shows up

//@ has foo/type.T.html
//@ hasraw - "pub type T = "
//@ hasraw - "&lt;'_&gt;"
pub type T = fn(&<() as Trait>::Gat<'_>);