]> git.lizzy.rs Git - rust.git/blob - tests/ui/generic-associated-types/own-bound-span.stderr
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[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`.