2019-11-03 18:00:00 -06:00
|
|
|
// check-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(dead_code)]
|
2015-04-09 11:29:40 -05: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() {}
|