summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc/generic-associated-types/issue-94683.rs
blob: 38ecf5283108f047462a5832192b6001e4689b30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![crate_name = "foo"]
#![feature(generic_associated_types)]

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

// Make sure that the elided lifetime shows up

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