blob: 661730bcd757ace8e47333d2ea565fec0a1e4257 [file] [log] [blame]
error[E0277]: the trait bound `(dyn ToString + 'static): Default` is not satisfied
--> $DIR/issue-43924.rs:7:15
|
LL | trait Foo<T: Default + ToString> {
| -------------------------------- required by `Foo`
LL | type Out: Default + ToString + ?Sized = dyn ToString;
| ^^^^^^^ the trait `Default` is not implemented for `(dyn ToString + 'static)`
error[E0277]: the trait bound `(dyn ToString + 'static): Default` is not satisfied
--> $DIR/issue-43924.rs:10:6
|
LL | trait Foo<T: Default + ToString> {
| --- required by a bound in this
LL | type Out: Default + ToString + ?Sized = dyn ToString;
| ------- required by this bound in `Foo`
...
LL | impl Foo<u32> for () {}
| ^^^^^^^^ the trait `Default` is not implemented for `(dyn ToString + 'static)`
error[E0277]: the trait bound `(dyn ToString + 'static): Default` is not satisfied
--> $DIR/issue-43924.rs:11:6
|
LL | trait Foo<T: Default + ToString> {
| --- required by a bound in this
LL | type Out: Default + ToString + ?Sized = dyn ToString;
| ------- required by this bound in `Foo`
...
LL | impl Foo<u64> for () {}
| ^^^^^^^^ the trait `Default` is not implemented for `(dyn ToString + 'static)`
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0277`.