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