]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/issues/issue-71611.full.stderr
Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco
[rust.git] / tests / 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[E0741]: 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 Some errors have detailed explanations: E0741, E0770.
16 For more information about an error, try `rustc --explain E0741`.