2022-08-17 10:22:32 +00:00
|
|
|
error[E0277]: the trait bound `for<'a> (): Trait2<'a>` is not satisfied
|
2023-01-08 03:14:27 +00:00
|
|
|
--> $DIR/issue-35570.rs:8:40
|
2021-05-03 13:25:32 +00:00
|
|
|
|
|
|
|
|
LL | fn _ice(param: Box<dyn for <'a> Trait1<<() as Trait2<'a>>::Ty>>) {
|
2023-01-08 03:14:27 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ the trait `for<'a> Trait2<'a>` is not implemented for `()`
|
2023-09-10 03:33:07 +00:00
|
|
|
|
|
|
|
|
help: this trait has no implementations, consider adding one
|
|
|
|
--> $DIR/issue-35570.rs:4:1
|
|
|
|
|
|
|
|
|
LL | trait Trait2<'a> {
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2021-05-03 13:25:32 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2021-05-03 13:25:32 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|