summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/min_const_generics/default_function_param.stderr
blob: 247eea3d98995ee6a168ee05fb0d11bb6734bb35 (plain)
1
2
3
4
5
6
7
8
error: defaults for const parameters are only allowed in `struct`, `enum`, `type`, or `trait` definitions
  --> $DIR/default_function_param.rs:3:8
   |
LL | fn foo<const SIZE: usize = 5usize>() {}
   |        ^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 1 previous error