|
| 1 | +error[E0275]: overflow evaluating the requirement `Vec<u8>: Trait<String>` |
| 2 | + --> $DIR/item-bound-via-impl-where-clause.rs:31:33 |
| 3 | + | |
| 4 | +LL | let s: String = transmute::<_, String>(vec![65_u8, 66, 67]); |
| 5 | + | ^ |
| 6 | + | |
| 7 | +note: required by a bound in `transmute` |
| 8 | + --> $DIR/item-bound-via-impl-where-clause.rs:29:17 |
| 9 | + | |
| 10 | +LL | fn transmute<L: Trait<R>, R>(r: L) -> <L::Proof as Trait<R>>::Proof { r } |
| 11 | + | ^^^^^^^^ required by this bound in `transmute` |
| 12 | + |
| 13 | +error[E0275]: overflow evaluating the requirement `<<Vec<u8> as Trait<String>>::Proof as Trait<String>>::Proof == _` |
| 14 | + --> $DIR/item-bound-via-impl-where-clause.rs:31:21 |
| 15 | + | |
| 16 | +LL | let s: String = transmute::<_, String>(vec![65_u8, 66, 67]); |
| 17 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 18 | + |
| 19 | +error[E0275]: overflow evaluating the requirement `<<Vec<u8> as Trait<String>>::Proof as Trait<String>>::Proof == String` |
| 20 | + --> $DIR/item-bound-via-impl-where-clause.rs:31:21 |
| 21 | + | |
| 22 | +LL | let s: String = transmute::<_, String>(vec![65_u8, 66, 67]); |
| 23 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 24 | + |
| 25 | +error[E0275]: overflow evaluating the requirement `<<Vec<u8> as Trait<String>>::Proof as Trait<String>>::Proof: Sized` |
| 26 | + --> $DIR/item-bound-via-impl-where-clause.rs:31:21 |
| 27 | + | |
| 28 | +LL | let s: String = transmute::<_, String>(vec![65_u8, 66, 67]); |
| 29 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 30 | + | |
| 31 | + = note: the return type of a function must have a statically known size |
| 32 | + |
| 33 | +error[E0275]: overflow evaluating the requirement `<<Vec<u8> as Trait<String>>::Proof as Trait<String>>::Proof well-formed` |
| 34 | + --> $DIR/item-bound-via-impl-where-clause.rs:31:21 |
| 35 | + | |
| 36 | +LL | let s: String = transmute::<_, String>(vec![65_u8, 66, 67]); |
| 37 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 38 | + |
| 39 | +error[E0275]: overflow evaluating the requirement `<<Vec<u8> as Trait<String>>::Proof as Trait<String>>::Proof == _` |
| 40 | + --> $DIR/item-bound-via-impl-where-clause.rs:31:21 |
| 41 | + | |
| 42 | +LL | let s: String = transmute::<_, String>(vec![65_u8, 66, 67]); |
| 43 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 44 | + | |
| 45 | + = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
| 46 | + |
| 47 | +error: aborting due to 6 previous errors |
| 48 | + |
| 49 | +For more information about this error, try `rustc --explain E0275`. |
0 commit comments