]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/issues/issue-71611.min.stderr
Auto merge of #80267 - 0urobor0s:ouro/61592, r=jyn514
[rust.git] / src / test / ui / const-generics / issues / issue-71611.min.stderr
1 error[E0770]: the type of const parameters must not depend on other generic parameters
2   --> $DIR/issue-71611.rs:5:31
3    |
4 LL | fn func<A, const F: fn(inner: A)>(outer: A) {
5    |                               ^ the type must not depend on the parameter `A`
6
7 error: using function pointers as const generic parameters is forbidden
8   --> $DIR/issue-71611.rs:5:21
9    |
10 LL | fn func<A, const F: fn(inner: A)>(outer: A) {
11    |                     ^^^^^^^^^^^^
12
13 error: aborting due to 2 previous errors
14
15 For more information about this error, try `rustc --explain E0770`.