|
| 1 | +error[E0275]: overflow evaluating the requirement `Element: MetaSized` |
| 2 | + --> $DIR/overflow.rs:16:16 |
| 3 | + | |
| 4 | +LL | struct Element(<Box<Box<Element>> as ParseTokens>::Output); |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 6 | + | |
| 7 | +note: required for `Box<Element>` to implement `ParseTokens` |
| 8 | + --> $DIR/overflow.rs:12:31 |
| 9 | + | |
| 10 | +LL | impl<T: ParseTokens + ?Sized> ParseTokens for Box<T> { |
| 11 | + | - ^^^^^^^^^^^ ^^^^^^ |
| 12 | + | | |
| 13 | + | unsatisfied trait bound introduced here |
| 14 | + = note: 1 redundant requirement hidden |
| 15 | + = note: required for `Box<Box<Element>>` to implement `ParseTokens` |
| 16 | + |
| 17 | +error[E0275]: overflow evaluating the requirement `Box<Element>: ParseTokens` |
| 18 | + --> $DIR/overflow.rs:18:22 |
| 19 | + | |
| 20 | +LL | impl ParseTokens for Element { |
| 21 | + | ^^^^^^^ |
| 22 | + | |
| 23 | +note: required for `Box<Box<Element>>` to implement `ParseTokens` |
| 24 | + --> $DIR/overflow.rs:12:31 |
| 25 | + | |
| 26 | +LL | impl<T: ParseTokens + ?Sized> ParseTokens for Box<T> { |
| 27 | + | ----------- ^^^^^^^^^^^ ^^^^^^ |
| 28 | + | | |
| 29 | + | unsatisfied trait bound introduced here |
| 30 | +note: required because it appears within the type `Element` |
| 31 | + --> $DIR/overflow.rs:16:8 |
| 32 | + | |
| 33 | +LL | struct Element(<Box<Box<Element>> as ParseTokens>::Output); |
| 34 | + | ^^^^^^^ |
| 35 | +note: required by a bound in `ParseTokens` |
| 36 | + --> $DIR/overflow.rs:9:1 |
| 37 | + | |
| 38 | +LL | / trait ParseTokens { |
| 39 | +LL | | type Output; |
| 40 | +LL | | } |
| 41 | + | |_^ required by this bound in `ParseTokens` |
| 42 | + |
| 43 | +error: aborting due to 2 previous errors |
| 44 | + |
| 45 | +For more information about this error, try `rustc --explain E0275`. |
0 commit comments