mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
21 lines
692 B
Plaintext
21 lines
692 B
Plaintext
error[E0496]: lifetime name `'s` shadows a lifetime name that is already in scope
|
|
--> $DIR/shadow.rs:4:12
|
|
|
|
|
LL | impl<'s> Foo<&'s u8> {
|
|
| -- first declared here
|
|
LL | fn bar<'s>(&self, x: &'s u8) {}
|
|
| ^^ lifetime `'s` already in scope
|
|
|
|
error[E0496]: lifetime name `'s` shadows a lifetime name that is already in scope
|
|
--> $DIR/shadow.rs:5:19
|
|
|
|
|
LL | impl<'s> Foo<&'s u8> {
|
|
| -- first declared here
|
|
LL | fn bar<'s>(&self, x: &'s u8) {}
|
|
LL | fn baz(x: for<'s> fn(&'s u32)) {}
|
|
| ^^ lifetime `'s` already in scope
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0496`.
|