2019-11-04 00:00:00 +00:00
|
|
|
// check-pass
|
2018-09-25 23:51:35 +02:00
|
|
|
#![allow(dead_code)]
|
2015-04-09 09:29:40 -07:00
|
|
|
// regression test for #19097
|
|
|
|
|
|
|
|
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() {}
|