We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f581d52 commit 02fa14fCopy full SHA for 02fa14f
src/test/compile-fail/E0261.rs
@@ -9,9 +9,11 @@
9
// except according to those terms.
10
11
fn foo(x: &'a str) { } //~ ERROR E0261
12
+ //~| undeclared lifetime
13
14
struct Foo {
15
x: &'a str, //~ ERROR E0261
16
17
}
18
19
fn main() {}
src/test/compile-fail/E0262.rs
@@ -9,5 +9,6 @@
fn foo<'static>(x: &'static str) { } //~ ERROR E0262
+ //~| 'static is a reserved lifetime name
0 commit comments