Fix E0670 doc error
This commit is contained in:
parent
7461a5e655
commit
899d013fef
1 changed files with 4 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue