1 error[E0015]: cannot call non-const fn `<A as Default>::default` in constant functions
2 --> $DIR/derive-const-non-const-type.rs:10:14
4 LL | #[derive_const(Default)]
5 | ------- in this derive macro expansion
9 = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
10 = note: this error originates in the derive macro `Default` (in Nightly builds, run with -Z macro-backtrace for more info)
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0015`.