We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8bc0e48 + 4b0fe2a commit ee79cf2Copy full SHA for ee79cf2
src/librustc_error_codes/error_codes/E0262.md
@@ -1,8 +1,12 @@
1
-Declaring certain lifetime names in parameters is disallowed. For example,
2
-because the `'static` lifetime is a special built-in lifetime name denoting
3
-the lifetime of the entire program, this is an error:
+An invalid name was used for a lifetime parameter.
+
+Erroneous code example:
4
5
```compile_fail,E0262
6
// error, invalid lifetime parameter name `'static`
7
fn foo<'static>(x: &'static str) { }
8
```
9
10
+Declaring certain lifetime names in parameters is disallowed. For example,
11
+because the `'static` lifetime is a special built-in lifetime name denoting
12
+the lifetime of the entire program, this is an error:
0 commit comments