Skip to content

Commit f3fe248

Browse files
authored
Add missing lifetime (#1439)
* fix incorrect #[note] syntax * more syntax fixes * add missing lifetime
1 parent 0a80e53 commit f3fe248

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/diagnostics/diagnostic-structs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ In the end, the `SessionDiagnostic` derive will generate an implementation of
113113
`SessionDiagnostic` that looks like the following:
114114

115115
```rust,ignore
116-
impl SessionDiagnostic for FieldAlreadyDeclared {
116+
impl SessionDiagnostic<'_> for FieldAlreadyDeclared {
117117
fn into_diagnostic(self, sess: &'_ rustc_session::Session) -> DiagnosticBuilder<'_> {
118118
let mut diag = sess.struct_err(rustc_errors::fluent::typeck::field_already_declared);
119119
diag.set_span(self.span);

0 commit comments

Comments
 (0)