|
| 1 | +error[E0277]: the trait bound `String: Copy` is not satisfied |
| 2 | + --> $DIR/type-alias-bounds.rs:23:12 |
| 3 | + | |
| 4 | +LL | let _: AliasConstUnused<String>; |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `String` |
| 6 | + | |
| 7 | +note: required by a bound in `ct_unused_0::AliasConstUnused` |
| 8 | + --> $DIR/type-alias-bounds.rs:20:30 |
| 9 | + | |
| 10 | +LL | type AliasConstUnused<T: Copy> = (T, I32<{ DATA }>); |
| 11 | + | ^^^^ required by this bound in `AliasConstUnused` |
| 12 | + |
| 13 | +error[E0277]: the trait bound `String: Copy` is not satisfied |
| 14 | + --> $DIR/type-alias-bounds.rs:31:12 |
| 15 | + | |
| 16 | +LL | let _: AliasConstUnused; |
| 17 | + | ^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `String` |
| 18 | + | |
| 19 | +note: required by a bound in `ct_unused_1::AliasConstUnused` |
| 20 | + --> $DIR/type-alias-bounds.rs:29:41 |
| 21 | + | |
| 22 | +LL | type AliasConstUnused where String: Copy = I32<{ 0; 0 }>; |
| 23 | + | ^^^^ required by this bound in `AliasConstUnused` |
| 24 | + |
| 25 | +error[E0277]: the trait bound `String: Copy` is not satisfied |
| 26 | + --> $DIR/type-alias-bounds.rs:39:12 |
| 27 | + | |
| 28 | +LL | let _: AliasFnUnused<String>; |
| 29 | + | ^^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `String` |
| 30 | + | |
| 31 | +note: required by a bound in `AliasFnUnused` |
| 32 | + --> $DIR/type-alias-bounds.rs:36:27 |
| 33 | + | |
| 34 | +LL | type AliasFnUnused<T: Copy> = (T, I32<{ code() }>); |
| 35 | + | ^^^^ required by this bound in `AliasFnUnused` |
| 36 | + |
| 37 | +error[E0277]: the trait bound `String: Copy` is not satisfied |
| 38 | + --> $DIR/type-alias-bounds.rs:57:12 |
| 39 | + | |
| 40 | +LL | let _: AliasAssocConstUsed<String>; |
| 41 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `String` |
| 42 | + | |
| 43 | +note: required by a bound in `AliasAssocConstUsed` |
| 44 | + --> $DIR/type-alias-bounds.rs:55:41 |
| 45 | + | |
| 46 | +LL | type AliasAssocConstUsed<T: Trait + Copy> = I32<{ T::DATA }>; |
| 47 | + | ^^^^ required by this bound in `AliasAssocConstUsed` |
| 48 | + |
| 49 | +error[E0277]: the trait bound `String: Copy` is not satisfied |
| 50 | + --> $DIR/type-alias-bounds.rs:65:12 |
| 51 | + | |
| 52 | +LL | let _: AliasFnUsed<String>; |
| 53 | + | ^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `String` |
| 54 | + | |
| 55 | +note: required by a bound in `AliasFnUsed` |
| 56 | + --> $DIR/type-alias-bounds.rs:62:33 |
| 57 | + | |
| 58 | +LL | type AliasFnUsed<T: Trait + Copy> = I32<{ code::<T>() }>; |
| 59 | + | ^^^^ required by this bound in `AliasFnUsed` |
| 60 | + |
| 61 | +error: aborting due to 5 previous errors |
| 62 | + |
| 63 | +For more information about this error, try `rustc --explain E0277`. |
0 commit comments