summary refs log tree commit diff
path: root/src/test/rustdoc/for-lifetime.rs
blob: 34a7eae31c79062fde794a43e560dc7e72d8375d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#![crate_name = "foo"]
#![crate_type = "lib"]

pub struct Foo {
    pub some_func: for<'a> fn(val: &'a i32) -> i32,
    pub some_trait: dyn for<'a> Trait<'a>,
}

// @has foo/struct.Foo.html '//span[@id="structfield.some_func"]' "some_func: for<'a> fn(val: &'a i32) -> i32"
// @has foo/struct.Foo.html '//span[@id="structfield.some_trait"]' "some_trait: dyn Trait<'a>"

pub trait Trait<'a> {}