Fix E0670 doc error
This commit is contained in:
parent
7461a5e655
commit
899d013fef
@ -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
|
||||
}
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user