|
| 1 | +error[E0277]: the size for values of type `(dyn Deref<Target = T> + 'static)` cannot be known at compilation time |
| 2 | + --> $DIR/issue-119942-unsatisified-gat-bound-during-assoc-ty-selection.rs:10:23 |
| 3 | + | |
| 4 | +LL | type Pointer<T> = dyn Deref<Target = T>; |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time |
| 6 | + | |
| 7 | + = help: the trait `Sized` is not implemented for `(dyn Deref<Target = T> + 'static)` |
| 8 | +note: required by a bound in `PointerFamily::Pointer` |
| 9 | + --> $DIR/issue-119942-unsatisified-gat-bound-during-assoc-ty-selection.rs:4:5 |
| 10 | + | |
| 11 | +LL | type Pointer<T>: Deref<Target = T>; |
| 12 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `PointerFamily::Pointer` |
| 13 | +help: consider relaxing the implicit `Sized` restriction |
| 14 | + | |
| 15 | +LL | type Pointer<T>: Deref<Target = T> + ?Sized; |
| 16 | + | ++++++++ |
| 17 | + |
| 18 | +error[E0599]: the size for values of type `Node<i32, RcFamily>` cannot be known at compilation time |
| 19 | + --> $DIR/issue-119942-unsatisified-gat-bound-during-assoc-ty-selection.rs:31:35 |
| 20 | + | |
| 21 | +LL | enum Node<T, P: PointerFamily> { |
| 22 | + | ------------------------------ |
| 23 | + | | |
| 24 | + | variant or associated item `new` not found for this enum |
| 25 | + | doesn't satisfy `Node<i32, RcFamily>: Sized` |
| 26 | +... |
| 27 | +LL | let mut list = RcNode::<i32>::new(); |
| 28 | + | ^^^ doesn't have a size known at compile-time |
| 29 | + --> $SRC_DIR/core/src/ops/deref.rs:LL:COL |
| 30 | + | |
| 31 | + = note: doesn't satisfy `_: Sized` |
| 32 | + | |
| 33 | +note: trait bound `Node<i32, RcFamily>: Sized` was not satisfied |
| 34 | + --> $DIR/issue-119942-unsatisified-gat-bound-during-assoc-ty-selection.rs:4:18 |
| 35 | + | |
| 36 | +LL | type Pointer<T>: Deref<Target = T>; |
| 37 | + | ------- ^ unsatisfied trait bound introduced here |
| 38 | +note: trait bound `(dyn Deref<Target = Node<i32, RcFamily>> + 'static): Sized` was not satisfied |
| 39 | + --> $DIR/issue-119942-unsatisified-gat-bound-during-assoc-ty-selection.rs:23:29 |
| 40 | + | |
| 41 | +LL | impl<T, P: PointerFamily> Node<T, P> |
| 42 | + | ---------- |
| 43 | +LL | where |
| 44 | +LL | P::Pointer<Node<T, P>>: Sized, |
| 45 | + | ^^^^^ unsatisfied trait bound introduced here |
| 46 | +note: the trait `Sized` must be implemented |
| 47 | + --> $SRC_DIR/core/src/marker.rs:LL:COL |
| 48 | + |
| 49 | +error: aborting due to 2 previous errors |
| 50 | + |
| 51 | +Some errors have detailed explanations: E0277, E0599. |
| 52 | +For more information about an error, try `rustc --explain E0277`. |
0 commit comments