]>
Commit | Line | Data |
---|---|---|
1b1a35ee | 1 | error[E0277]: the trait bound `MyStruct: Default` is not satisfied |
f035d41b XL |
2 | --> $DIR/issue-59435.rs:11:5 |
3 | | | |
f035d41b | 4 | LL | default type MyType = MyStruct; |
1b1a35ee | 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `MyStruct` |
94222f64 XL |
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` | |
f035d41b XL |
12 | |
13 | error: aborting due to previous error | |
14 | ||
15 | For more information about this error, try `rustc --explain E0277`. |