compiler/rustc_error_codes/src/error_codes/E0770.md MARKDOWN 14 lines View on github.com → Search inside
1The type of a const parameter references other generic parameters.23Erroneous code example:45```compile_fail,E07706fn foo<T, const N: T>() {} // error!7```89To fix this error, use a concrete type for the const parameter:1011```12fn foo<T, const N: usize>() {}13```

Findings

✓ No findings reported for this file.

Get this view in your editor

Same data, no extra tab — call code_get_file + code_get_findings over MCP from Claude/Cursor/Copilot.