about summary refs log tree commit diff
path: root/tests/ui/const-generics/adt_const_params/non_valtreeable_const_arg-1.stderr
blob: 71339411c847e842209f07129a52ea6d4c57f174 (plain)
1
2
3
4
5
6
7
8
9
10
error: using function pointers as const generic parameters is forbidden
  --> $DIR/non_valtreeable_const_arg-1.rs:6:25
   |
LL | struct Checked<const F: fn()>;
   |                         ^^^^
   |
   = note: the only supported types are integers, `bool`, and `char`

error: aborting due to 1 previous error