rust/tests/ui/issues/auxiliary/issue-7178.rs

8 lines
123 B
Rust

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)
}
}