Error code E0671

Note: this error code is no longer emitted by the compiler.

Const parameters cannot depend on type parameters. The following is therefore invalid:

fn const_id<T, const N: T>() -> T { // error
    N
}
Run

Back to list of error codes