Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
"##,
E0401: r##"
-Inner items do not inherit type parameters from the functions they are embedded
-in.
+Inner items do not inherit type or const parameters from the functions
+they are embedded in.
Erroneous code example:
```
"##,
+E0670: r##"
+Const parameters cannot depend on type parameters.
+The following is therefore invalid:
+
+```
+fn const_id<T, const N: T>() -> T {
+ N
+}
+```
+"##,
+
}
register_diagnostics! {