diff options
| author | varkor <github@varkor.com> | 2019-04-25 23:19:36 +0100 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2019-04-25 23:19:36 +0100 |
| commit | 8f78736feeb03cc64c54197881032a996ff8a6b3 (patch) | |
| tree | bde85025290d504f745acf17a5e461044af9e84c | |
| parent | 908a6399bcbc008a6d3b36b3db8724d7c93e890f (diff) | |
| download | rust-8f78736feeb03cc64c54197881032a996ff8a6b3.tar.gz rust-8f78736feeb03cc64c54197881032a996ff8a6b3.zip | |
Fix error code description
| -rw-r--r-- | src/librustc_resolve/error_codes.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/librustc_resolve/error_codes.rs b/src/librustc_resolve/error_codes.rs index d3b66ddb4a7..7cd26dce144 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, const N: T>() -> T { +```compile_fail,E0671 +#![feature(const_generics)] + +fn const_id<T, const N: T>() -> T { // error: const parameter + // depends on type parameter N } ``` |
