blob: d4594b2e2c951894f23a935b7b7df6c8605f4313 [file] [log] [blame] [edit]
//! regression test for <https://github.com/rust-lang/rust/issues/19097>
//@ check-pass
#![allow(dead_code)]
struct Foo<T>(T);
impl<'a, T> Foo<&'a T> {
fn foo(&self) {}
}
impl<'a, T> Foo<&'a mut T> {
fn foo(&self) {}
}
fn main() {}