]> git.lizzy.rs Git - rust.git/blob - src/test/ui/specialization/issue-59435.stderr
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[rust.git] / src / test / ui / specialization / issue-59435.stderr
1 error[E0277]: the trait bound `MyStruct: Default` is not satisfied
2   --> $DIR/issue-59435.rs:11:27
3    |
4 LL |     default type MyType = MyStruct;
5    |                           ^^^^^^^^ the trait `Default` is not implemented for `MyStruct`
6    |
7 note: required by a bound in `MyTrait::MyType`
8   --> $DIR/issue-59435.rs:7:18
9    |
10 LL |     type MyType: Default;
11    |                  ^^^^^^^ required by this bound in `MyTrait::MyType`
12 help: consider annotating `MyStruct` with `#[derive(Default)]`
13    |
14 LL | #[derive(Default)]
15    |
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0277`.