]> git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/issues/issue-71611.full.stderr
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / const-generics / issues / issue-71611.full.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`.