|
| 1 | +error[E0283]: type annotations needed: cannot satisfy `S: InnerBinder<'a, 'b, 'c>` |
| 2 | + --> $DIR/implied_higher_ranked_alias_outlives_assumption.rs:30:49 |
| 3 | + | |
| 4 | +LL | impl<'a, 'b, 'c, S> InnerBinder<'a, 'b, 'c> for S |
| 5 | + | ^ |
| 6 | + | |
| 7 | + = note: cannot satisfy `S: InnerBinder<'a, 'b, 'c>` |
| 8 | +help: the trait `InnerBinder<'a, 'b, 'c>` is not implemented for `S` |
| 9 | + but trait `InnerBinder<'_, '_, '_>` is implemented for it |
| 10 | + --> $DIR/implied_higher_ranked_alias_outlives_assumption.rs:30:1 |
| 11 | + | |
| 12 | +LL | / impl<'a, 'b, 'c, S> InnerBinder<'a, 'b, 'c> for S |
| 13 | +LL | | |
| 14 | +LL | | where |
| 15 | +LL | | S: Trait<'a, 'b>, |
| 16 | +LL | | <S as Trait<'a, 'b>>::Assoc: 'c {} |
| 17 | + | |___________________________________^ |
| 18 | + |
| 19 | +error[E0283]: type annotations needed: cannot satisfy `for<'a, 'b> T: InnerBinder<'a, 'b, 'c>` |
| 20 | + --> $DIR/implied_higher_ranked_alias_outlives_assumption.rs:53:28 |
| 21 | + | |
| 22 | +LL | const REGIONCK_ENV<'c, T>: ReqTrait<'c, T> = todo!() |
| 23 | + | ^^^^^^^^^^^^^^^ |
| 24 | + | |
| 25 | + = note: cannot satisfy `for<'a, 'b> T: InnerBinder<'a, 'b, 'c>` |
| 26 | +help: the trait `InnerBinder<'a, 'b, 'c>` is not implemented for `T` |
| 27 | + but trait `InnerBinder<'_, '_, '_>` is implemented for it |
| 28 | + --> $DIR/implied_higher_ranked_alias_outlives_assumption.rs:30:1 |
| 29 | + | |
| 30 | +LL | / impl<'a, 'b, 'c, S> InnerBinder<'a, 'b, 'c> for S |
| 31 | +LL | | |
| 32 | +LL | | where |
| 33 | +LL | | S: Trait<'a, 'b>, |
| 34 | +LL | | <S as Trait<'a, 'b>>::Assoc: 'c {} |
| 35 | + | |___________________________________^ |
| 36 | +note: required for `T` to implement `for<'a> OuterBinder<'a, 'c, ImpliedBound<'a, 'c, T>>` |
| 37 | + --> $DIR/implied_higher_ranked_alias_outlives_assumption.rs:37:21 |
| 38 | + | |
| 39 | +LL | impl<'a, 'c, T0, S> OuterBinder<'a, 'c, T0> for S |
| 40 | + | ^^^^^^^^^^^^^^^^^^^^^^^ ^ |
| 41 | +LL | where |
| 42 | +LL | for<'b> S: InnerBinder<'a, 'b, 'c>, {} |
| 43 | + | ----------------------- unsatisfied trait bound introduced here |
| 44 | +note: required by a bound in `ReqTrait` |
| 45 | + --> $DIR/implied_higher_ranked_alias_outlives_assumption.rs:43:16 |
| 46 | + | |
| 47 | +LL | struct ReqTrait<'c, T>(&'c (), T) |
| 48 | + | -------- required by a bound in this struct |
| 49 | +LL | where |
| 50 | +LL | for<'a> T: OuterBinder<'a, 'c, ImpliedBound<'a, 'c, T>>,; |
| 51 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `ReqTrait` |
| 52 | + |
| 53 | +error[E0283]: type annotations needed: cannot satisfy `for<'a, 'b> T: InnerBinder<'a, 'b, 'c>` |
| 54 | + --> $DIR/implied_higher_ranked_alias_outlives_assumption.rs:49:12 |
| 55 | + | |
| 56 | +LL | let _: ReqTrait<'c, T>; |
| 57 | + | ^^^^^^^^^^^^^^^ |
| 58 | + | |
| 59 | + = note: cannot satisfy `for<'a, 'b> T: InnerBinder<'a, 'b, 'c>` |
| 60 | +help: the trait `InnerBinder<'a, 'b, 'c>` is not implemented for `T` |
| 61 | + but trait `InnerBinder<'_, '_, '_>` is implemented for it |
| 62 | + --> $DIR/implied_higher_ranked_alias_outlives_assumption.rs:30:1 |
| 63 | + | |
| 64 | +LL | / impl<'a, 'b, 'c, S> InnerBinder<'a, 'b, 'c> for S |
| 65 | +LL | | |
| 66 | +LL | | where |
| 67 | +LL | | S: Trait<'a, 'b>, |
| 68 | +LL | | <S as Trait<'a, 'b>>::Assoc: 'c {} |
| 69 | + | |___________________________________^ |
| 70 | +note: required for `T` to implement `for<'a> OuterBinder<'a, 'c, ImpliedBound<'a, 'c, T>>` |
| 71 | + --> $DIR/implied_higher_ranked_alias_outlives_assumption.rs:37:21 |
| 72 | + | |
| 73 | +LL | impl<'a, 'c, T0, S> OuterBinder<'a, 'c, T0> for S |
| 74 | + | ^^^^^^^^^^^^^^^^^^^^^^^ ^ |
| 75 | +LL | where |
| 76 | +LL | for<'b> S: InnerBinder<'a, 'b, 'c>, {} |
| 77 | + | ----------------------- unsatisfied trait bound introduced here |
| 78 | +note: required by a bound in `ReqTrait` |
| 79 | + --> $DIR/implied_higher_ranked_alias_outlives_assumption.rs:43:16 |
| 80 | + | |
| 81 | +LL | struct ReqTrait<'c, T>(&'c (), T) |
| 82 | + | -------- required by a bound in this struct |
| 83 | +LL | where |
| 84 | +LL | for<'a> T: OuterBinder<'a, 'c, ImpliedBound<'a, 'c, T>>,; |
| 85 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `ReqTrait` |
| 86 | + |
| 87 | +error[E0283]: type annotations needed: cannot satisfy `for<'a, 'b> T: InnerBinder<'a, 'b, 'c>` |
| 88 | + --> $DIR/implied_higher_ranked_alias_outlives_assumption.rs:53:46 |
| 89 | + | |
| 90 | +LL | const REGIONCK_ENV<'c, T>: ReqTrait<'c, T> = todo!() |
| 91 | + | ^^^^^^^ |
| 92 | + | |
| 93 | + = note: cannot satisfy `for<'a, 'b> T: InnerBinder<'a, 'b, 'c>` |
| 94 | +help: the trait `InnerBinder<'a, 'b, 'c>` is not implemented for `T` |
| 95 | + but trait `InnerBinder<'_, '_, '_>` is implemented for it |
| 96 | + --> $DIR/implied_higher_ranked_alias_outlives_assumption.rs:30:1 |
| 97 | + | |
| 98 | +LL | / impl<'a, 'b, 'c, S> InnerBinder<'a, 'b, 'c> for S |
| 99 | +LL | | |
| 100 | +LL | | where |
| 101 | +LL | | S: Trait<'a, 'b>, |
| 102 | +LL | | <S as Trait<'a, 'b>>::Assoc: 'c {} |
| 103 | + | |___________________________________^ |
| 104 | +note: required for `T` to implement `for<'a> OuterBinder<'a, 'c, ImpliedBound<'a, 'c, T>>` |
| 105 | + --> $DIR/implied_higher_ranked_alias_outlives_assumption.rs:37:21 |
| 106 | + | |
| 107 | +LL | impl<'a, 'c, T0, S> OuterBinder<'a, 'c, T0> for S |
| 108 | + | ^^^^^^^^^^^^^^^^^^^^^^^ ^ |
| 109 | +LL | where |
| 110 | +LL | for<'b> S: InnerBinder<'a, 'b, 'c>, {} |
| 111 | + | ----------------------- unsatisfied trait bound introduced here |
| 112 | +note: required by a bound in `ReqTrait` |
| 113 | + --> $DIR/implied_higher_ranked_alias_outlives_assumption.rs:43:16 |
| 114 | + | |
| 115 | +LL | struct ReqTrait<'c, T>(&'c (), T) |
| 116 | + | -------- required by a bound in this struct |
| 117 | +LL | where |
| 118 | +LL | for<'a> T: OuterBinder<'a, 'c, ImpliedBound<'a, 'c, T>>,; |
| 119 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `ReqTrait` |
| 120 | + |
| 121 | +error: aborting due to 4 previous errors |
| 122 | + |
| 123 | +For more information about this error, try `rustc --explain E0283`. |
0 commit comments