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 `()`
|
2021-05-03 13:25:32 +00:00
|
|
|
|
2023-01-08 19:02:58 +00:00
|
|
|
error[E0277]: the trait bound `for<'a> (): Trait2<'a>` is not satisfied
|
|
|
|
--> $DIR/issue-35570.rs:8:1
|
|
|
|
|
|
|
|
|
LL | / fn _ice(param: Box<dyn for <'a> Trait1<<() as Trait2<'a>>::Ty>>) {
|
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | let _e: (usize, usize) = unsafe{mem::transmute(param)};
|
|
|
|
LL | | }
|
|
|
|
| |_^ the trait `for<'a> Trait2<'a>` is not implemented for `()`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2021-05-03 13:25:32 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|