summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/auxiliary/elided-lifetime.rs
blob: 4f2c93379d88e88c33f3b3417a0b8054722ddae3 (plain)
1
2
3
4
5
6
7
8
9
10
11
#![crate_name = "bar"]

pub struct Ref<'a>(&'a u32);

pub fn test5(a: &u32) -> Ref {
    Ref(a)
}

pub fn test6(a: &u32) -> Ref<'_> {
    Ref(a)
}