]> git.proxmox.com Git - rustc.git/blame - tests/ui/specialization/issue-59435.stderr
New upstream version 1.70.0+dfsg1
[rustc.git] / tests / ui / specialization / issue-59435.stderr
CommitLineData
1b1a35ee 1error[E0277]: the trait bound `MyStruct: Default` is not satisfied
a2a8927a 2 --> $DIR/issue-59435.rs:11:27
f035d41b 3 |
f035d41b 4LL | default type MyType = MyStruct;
a2a8927a 5 | ^^^^^^^^ the trait `Default` is not implemented for `MyStruct`
94222f64
XL
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`
04454e1e
FG
12help: consider annotating `MyStruct` with `#[derive(Default)]`
13 |
353b0b11
FG
14LL + #[derive(Default)]
15LL | struct MyStruct {}
04454e1e 16 |
f035d41b
XL
17
18error: aborting due to previous error
19
20For more information about this error, try `rustc --explain E0277`.