Sign in
rust
/
rust
/
e2893f7c95e45f74c8bc5dbd033486c5bfaa4deb
/
.
/
compiler
/
rustc_error_codes
/
src
/
error_codes
/
E0671.md
blob: d4dbfb7a5d8e61c9b680df052e5e49f52a1200df [
file
] [
log
] [
blame
] [
view
]
#### Note: this error code is no longer emitted by the compiler.
Const
parameters cannot depend on type parameters
.
The
following
is
therefore invalid
:
```compile_fail,E0770
fn const_id<T, const N: T>() -> T { // error
N
}
```