1error[E0496]: lifetime name `'s` shadows a lifetime name that is already in scope 2 --> $DIR/shadow.rs:7:12 3 | 4LL | impl Foo<&'s u8> { 5 | -- first declared here 6LL | fn bar<'s>(&self, x: &'s u8) {} 7 | ^^ lifetime `'s` already in scope 8 9error[E0496]: lifetime name `'s` shadows a lifetime name that is already in scope 10 --> $DIR/shadow.rs:8:19 11 | 12LL | impl Foo<&'s u8> { 13 | -- first declared here 14LL | fn bar<'s>(&self, x: &'s u8) {} 15LL | fn baz(x: for<'s> fn(&'s u32)) {} 16 | ^^ lifetime `'s` already in scope 17 18error: aborting due to 2 previous errors 19 20For more information about this error, try `rustc --explain E0496`. 21