error: defaults for const parameters are only allowed in `struct`, `enum`, `type`, or `trait` definitions --> $DIR/default-on-impl.rs:3:6 | LL | impl Foo {} | ^^^^^^^^^^^^^^^^^^ error: aborting due to previous error