|
| 1 | +error[E0277]: the trait bound `*const T: ToUnit<'a>` is not satisfied |
| 2 | + --> $DIR/generalize-associated-type-alias.rs:18:13 |
| 3 | + | |
| 4 | +LL | impl<'a, T> Overlap<(&'a (), Assoc<'a, T>)> for T {} |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `ToUnit<'a>` is not implemented for `*const T` |
| 6 | + | |
| 7 | +help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement |
| 8 | + | |
| 9 | +LL | impl<'a, T> Overlap<(&'a (), Assoc<'a, T>)> for T where *const T: ToUnit<'a> {} |
| 10 | + | ++++++++++++++++++++++++++ |
| 11 | + |
| 12 | +error[E0277]: the trait bound `T: Overlap<(&'a (), _)>` is not satisfied |
| 13 | + --> $DIR/generalize-associated-type-alias.rs:18:49 |
| 14 | + | |
| 15 | +LL | impl<'a, T> Overlap<(&'a (), Assoc<'a, T>)> for T {} |
| 16 | + | ^ the trait `Overlap<(&'a (), _)>` is not implemented for `T` |
| 17 | + | |
| 18 | +help: the trait `Overlap<(&'a (), _)>` is not implemented for `T` |
| 19 | + but trait `Overlap<(&(), ())>` is implemented for `u32` |
| 20 | + --> $DIR/generalize-associated-type-alias.rs:18:1 |
| 21 | + | |
| 22 | +LL | impl<'a, T> Overlap<(&'a (), Assoc<'a, T>)> for T {} |
| 23 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 24 | + = help: for that trait implementation, expected `u32`, found `T` |
| 25 | + |
| 26 | +error: aborting due to 2 previous errors |
| 27 | + |
| 28 | +For more information about this error, try `rustc --explain E0277`. |
0 commit comments