diff --git a/src/librustc/diagnostics.rs b/src/librustc/diagnostics.rs index fe3f1bbbe8c4c..130266e627363 100644 --- a/src/librustc/diagnostics.rs +++ b/src/librustc/diagnostics.rs @@ -1974,7 +1974,7 @@ A closure or generator was constructed that references its own type. Erroneous example: -```rust +```compile-fail,E0644 fn fix(f: &F) where F: Fn(&F) {