diff --git a/src/librustc_resolve/error_codes.rs b/src/librustc_resolve/error_codes.rs index d3b66ddb4a7b..7cd26dce1447 100644 --- a/src/librustc_resolve/error_codes.rs +++ b/src/librustc_resolve/error_codes.rs @@ -1645,8 +1645,11 @@ fn main() { E0671: r##" Const parameters cannot depend on type parameters. The following is therefore invalid: -``` -fn const_id() -> T { +```compile_fail,E0671 +#![feature(const_generics)] + +fn const_id() -> T { // error: const parameter + // depends on type parameter N } ```