rust/tests/ui/issues/auxiliary/issue-7178.rs
2023-01-11 09:32:08 +00:00

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