fork/rust
git clone https://git.julia.blue/fork/rust
4fb7144ed15
1.43.0
1error[E0496]: lifetime name `'a` shadows a lifetime name that is already in scope 2 --> $DIR/shadowed-lifetime.rs:6:25 3 | 4LL | impl<'a> Foo<'a> { 5 | -- first declared here 6LL | fn shadow_in_method<'a>(&'a self) -> &'a isize { 7 | ^^ lifetime 'a already in scope 8 9error[E0496]: lifetime name `'b` shadows a lifetime name that is already in scope 10 --> $DIR/shadowed-lifetime.rs:12:20 11 | 12LL | fn shadow_in_type<'b>(&'b self) -> &'b isize { 13 | -- first declared here 14LL | let x: for<'b> fn(&'b isize) = panic!(); 15 | ^^ lifetime 'b already in scope 16 17error: aborting due to 2 previous errors 18 19For more information about this error, try `rustc --explain E0496`.