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
|
|
|
|
2024-02-09 12:17:55 +00:00
|
|
|
error[E0277]: the trait bound `for<'a> (): Trait2<'a>` is not satisfied
|
|
|
|
--> $DIR/issue-35570.rs:8:66
|
|
|
|
|
|
|
|
|
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 `()`
|
|
|
|
|
|
|
|
|
help: this trait has no implementations, consider adding one
|
|
|
|
--> $DIR/issue-35570.rs:4:1
|
|
|
|
|
|
|
|
|
LL | trait Trait2<'a> {
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
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`.
|