summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/fn-const-param-call.min.stderr
blob: d984449e6ca6e25da8e5830164d7aef324d79a4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error: using function pointers as const generic parameters is forbidden
  --> $DIR/fn-const-param-call.rs:11:25
   |
LL | struct Wrapper<const F: fn() -> u32>;
   |                         ^^^^^^^^^^^

error: using function pointers as const generic parameters is forbidden
  --> $DIR/fn-const-param-call.rs:13:15
   |
LL | impl<const F: fn() -> u32> Wrapper<F> {
   |               ^^^^^^^^^^^

error: aborting due to 2 previous errors