]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0671.md
Rollup merge of #93556 - dtolnay:trailingcomma, r=cjgillot
[rust.git] / compiler / rustc_error_codes / src / error_codes / E0671.md
1 #### Note: this error code is no longer emitted by the compiler.
2
3 Const parameters cannot depend on type parameters.
4 The following is therefore invalid:
5
6 ```compile_fail,E0770
7 fn const_id<T, const N: T>() -> T { // error
8     N
9 }
10 ```