Fix error code description

This commit is contained in:
varkor 2019-04-25 23:19:36 +01:00
parent 908a6399bc
commit 8f78736fee

View File

@ -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
}
```