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() {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^ error: aborting due to previous error