]> git.lizzy.rs Git - rust.git/blob - tests/ui/generic-associated-types/own-bound-span.stderr
Rollup merge of #103702 - WaffleLapkin:lift-sized-bounds-from-pointer-methods-where...
[rust.git] / tests / ui / generic-associated-types / own-bound-span.stderr
1 error[E0277]: the trait bound `String: Copy` is not satisfied
2   --> $DIR/own-bound-span.rs:14:12
3    |
4 LL |     let _: <S as D>::P<String>;
5    |            ^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `String`
6    |
7 note: required by a bound in `D::P`
8   --> $DIR/own-bound-span.rs:4:15
9    |
10 LL |     type P<T: Copy>;
11    |               ^^^^ required by this bound in `D::P`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0277`.