Debian Codegraph @

third_party/rust/darling/tests/compile-fail/skip_field_not_impl_default.stderr

raw
1 error[E0277]: the trait bound `NoDefault: std::default::Default` is not satisfied
2 --> tests/compile-fail/skip_field_not_impl_default.rs:8:15
3 |
4 8 | #[darling(skip)]
5 | ^^^^ the trait `std::default::Default` is not implemented for `NoDefault`
6 |
7 help: consider annotating `NoDefault` with `#[derive(Default)]`
8 |
9 4 + #[derive(Default)]
10 5 | struct NoDefault(String);
11 |
12
13 error[E0277]: the trait bound `NoDefault: std::default::Default` is not satisfied
14 --> tests/compile-fail/skip_field_not_impl_default.rs:11:22
15 |
16 11 | #[darling(skip = true)]
17 | ^^^^ the trait `std::default::Default` is not implemented for `NoDefault`
18 |
19 help: consider annotating `NoDefault` with `#[derive(Default)]`
20 |
21 4 + #[derive(Default)]
22 5 | struct NoDefault(String);
23 |