fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the trait bound `MyStruct: Default` is not satisfied 2 --> $DIR/issue-59435.rs:11:27 3 | 4LL | default type MyType = MyStruct; 5 | ^^^^^^^^ the trait `Default` is not implemented for `MyStruct` 6 | 7note: required by a bound in `MyTrait::MyType` 8 --> $DIR/issue-59435.rs:7:18 9 | 10LL | type MyType: Default; 11 | ^^^^^^^ required by this bound in `MyTrait::MyType` 12help: consider annotating `MyStruct` with `#[derive(Default)]` 13 | 14LL + #[derive(Default)] 15LL | struct MyStruct {} 16 | 17 18error: aborting due to previous error 19 20For more information about this error, try `rustc --explain E0277`.