From 899d013fefba27b66c655af4199ccecf8fb9fdae Mon Sep 17 00:00:00 2001 From: varkor Date: Tue, 5 Feb 2019 21:40:18 +0100 Subject: [PATCH] Fix E0670 doc error --- src/librustc_resolve/diagnostics.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/librustc_resolve/diagnostics.rs b/src/librustc_resolve/diagnostics.rs index a5f9124674a..9965225fe0d 100644 --- a/src/librustc_resolve/diagnostics.rs +++ b/src/librustc_resolve/diagnostics.rs @@ -1646,8 +1646,11 @@ E0670: r##" Const parameters cannot depend on type parameters. The following is therefore invalid: -``` +```compile_fail,E0670 +#![feature(const_generics)] + fn const_id() -> T { + // ERROR: const parameters cannot depend on type parameters N } ```