Fix E0670 doc error

This commit is contained in:
varkor 2019-02-05 21:40:18 +01:00
parent 7461a5e655
commit 899d013fef

View File

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