diff options
| author | varkor <github@varkor.com> | 2019-02-05 21:40:18 +0100 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2019-02-07 15:02:17 +0100 |
| commit | 899d013fefba27b66c655af4199ccecf8fb9fdae (patch) | |
| tree | 5407bc2f066ce4c9ba0f929f9b24a48b83122d76 | |
| parent | 7461a5e655825294682b1d7d9a96aa2524dc7077 (diff) | |
| download | rust-899d013fefba27b66c655af4199ccecf8fb9fdae.tar.gz rust-899d013fefba27b66c655af4199ccecf8fb9fdae.zip | |
Fix E0670 doc error
| -rw-r--r-- | src/librustc_resolve/diagnostics.rs | 5 |
1 files changed, 4 insertions, 1 deletions
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, const N: T>() -> T { + // ERROR: const parameters cannot depend on type parameters N } ``` |
