]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetimes/shadow.rs
Merge commit 'd0cf3481a84e3aa68c2f185c460e282af36ebc42' into clippyup
[rust.git] / src / test / ui / lifetimes / shadow.rs
1 struct Foo<T>(T);
2
3 impl<'s> Foo<&'s u8> {
4     fn bar<'s>(&self, x: &'s u8) {} //~ ERROR shadows a lifetime name
5     fn baz(x: for<'s> fn(&'s u32)) {} //~ ERROR shadows a lifetime name
6 }
7
8 fn main() {}