constructor-lite 0.3.0

Generate minimal constructors for structs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
error[E0277]: the trait bound `DoesNotImplementDefault: Default` is not satisfied
 --> tests/compile-fail/no-default.rs:5:10
  |
5 | #[derive(ConstructorLite)]
  |          ^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `DoesNotImplementDefault`
  |
  = note: this error originates in the derive macro `ConstructorLite` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider annotating `DoesNotImplementDefault` with `#[derive(Default)]`
  |
3 + #[derive(Default)]
4 | struct DoesNotImplementDefault();
  |