1 #![feature(const_trait_impl)]
2 #![feature(const_fn_trait_bound)] // FIXME is this needed?
4 trait ConstDefaultFn: Sized {
7 #[default_method_body_is_const]
16 impl ConstDefaultFn for NonConstImpl {
20 impl const ConstDefaultFn for ConstImpl {
26 //~^ ERROR calls in constant functions are limited to constant functions, tuple structs and tuple variants