2017-11-16 22:59:45 -08:00
|
|
|
struct Foo<T>(T);
|
|
|
|
|
2022-02-09 18:42:32 -08:00
|
|
|
impl<'s> Foo<&'s u8> {
|
2017-11-20 13:13:27 +01:00
|
|
|
fn bar<'s>(&self, x: &'s u8) {} //~ ERROR shadows a lifetime name
|
|
|
|
fn baz(x: for<'s> fn(&'s u32)) {} //~ ERROR shadows a lifetime name
|
2017-11-16 22:59:45 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|