summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/auxiliary/issue-7178.rs
blob: 56ae5139af44c00b42dfe2ec7da353c3fbf303c6 (plain)
1
2
3
4
5
6
7
pub struct Foo<'a, A:'a>(&'a A);

impl<'a, A> Foo<'a, A> {
    pub fn new(a: &'a A) -> Foo<'a, A> {
        Foo(a)
    }
}