We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ecd3cc commit 61845ddCopy full SHA for 61845dd
src/test/compile-fail/shadowed-lifetime.rs
@@ -15,14 +15,14 @@ struct Foo<'a>(&'a isize);
15
impl<'a> Foo<'a> {
16
//~^ NOTE shadowed lifetime `'a` declared here
17
fn shadow_in_method<'a>(&'a self) -> &'a isize {
18
- //~^ ERROR lifetime name `'a` shadows another lifetime name that is already in scope
+ //~^ ERROR lifetime name `'a` shadows a lifetime name that is already in scope
19
self.0
20
}
21
22
fn shadow_in_type<'b>(&'b self) -> &'b isize {
23
//~^ NOTE shadowed lifetime `'b` declared here
24
let x: for<'b> fn(&'b isize) = panic!();
25
- //~^ ERROR lifetime name `'b` shadows another lifetime name that is already in scope
+ //~^ ERROR lifetime name `'b` shadows a lifetime name that is already in scope
26
27
28
0 commit comments