From b9c766ccc04676630e2ea70a7ac7a3ea4bc01057 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Mon, 20 Nov 2017 16:53:48 -0500 Subject: [PATCH] fix example more --- src/librustc/diagnostics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {