]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/fn-const-param-call.full.stderr
Rollup merge of #106321 - compiler-errors:delayed-bug-backtrace, r=Nilstrieb
[rust.git] / tests / ui / const-generics / fn-const-param-call.full.stderr
1 error[E0741]: using function pointers as const generic parameters is forbidden
2   --> $DIR/fn-const-param-call.rs:11:25
3    |
4 LL | struct Wrapper<const F: fn() -> u32>;
5    |                         ^^^^^^^^^^^
6
7 error[E0741]: using function pointers as const generic parameters is forbidden
8   --> $DIR/fn-const-param-call.rs:13:15
9    |
10 LL | impl<const F: fn() -> u32> Wrapper<F> {
11    |               ^^^^^^^^^^^
12
13 error: aborting due to 2 previous errors
14
15 For more information about this error, try `rustc --explain E0741`.