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