summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/fn-const-param-infer.min.stderr
blob: f6d41809d67dacf65f6fa9475ff16f1435a6ddea (plain)
1
2
3
4
5
6
7
8
9
10
error: using function pointers as const generic parameters is forbidden
  --> $DIR/fn-const-param-infer.rs:6:25
   |
LL | struct Checked<const F: fn(usize) -> bool>;
   |                         ^^^^^^^^^^^^^^^^^
   |
   = note: the only supported types are integers, `bool` and `char`

error: aborting due to 1 previous error