|
| 1 | +error[E0277]: the trait bound `<T as A>::AssocA: TransmuteFrom<(), Assume { alignment: false, lifetimes: false, safety: false, validity: false }>` is not satisfied |
| 2 | + --> $DIR/assoc-bound.rs:16:19 |
| 3 | + | |
| 4 | +LL | type AssocB = T::AssocA; |
| 5 | + | ^^^^^^^^^ the trait `TransmuteFrom<(), Assume { alignment: false, lifetimes: false, safety: false, validity: false }>` is not implemented for `<T as A>::AssocA` |
| 6 | + | |
| 7 | +note: required by a bound in `B::AssocB` |
| 8 | + --> $DIR/assoc-bound.rs:9:18 |
| 9 | + | |
| 10 | +LL | type AssocB: std::mem::TransmuteFrom<()>; |
| 11 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `B::AssocB` |
| 12 | +help: consider further restricting the associated type |
| 13 | + | |
| 14 | +LL | T: A, <T as A>::AssocA: TransmuteFrom<(), Assume { alignment: false, lifetimes: false, safety: false, validity: false }> |
| 15 | + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 16 | + |
| 17 | +error[E0277]: `()` cannot be safely transmuted into `<&i32 as A>::AssocA` |
| 18 | + --> $DIR/assoc-bound.rs:24:19 |
| 19 | + | |
| 20 | +LL | type AssocB = <&'static i32 as A>::AssocA; |
| 21 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ `<&i32 as A>::AssocA` has an unknown layout |
| 22 | + | |
| 23 | +note: required by a bound in `B::AssocB` |
| 24 | + --> $DIR/assoc-bound.rs:9:18 |
| 25 | + | |
| 26 | +LL | type AssocB: std::mem::TransmuteFrom<()>; |
| 27 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `B::AssocB` |
| 28 | + |
| 29 | +error: aborting due to 2 previous errors |
| 30 | + |
| 31 | +For more information about this error, try `rustc --explain E0277`. |
0 commit comments