summaryrefslogtreecommitdiffstats
path: root/tests/ui/generic-associated-types/multiple-type-params-with-unmet-bounds.stderr
blob: 57bff7c9e054f38f96fbba43a20f1c9c822ca814 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error[E0277]: the trait bound `String: Copy` is not satisfied
  --> $DIR/multiple-type-params-with-unmet-bounds.rs:8:29
   |
LL |     let _: <() as Trait>::P<String, String>;
   |                             ^^^^^^ the trait `Copy` is not implemented for `String`
   |
note: required by a bound in `Trait::P`
  --> $DIR/multiple-type-params-with-unmet-bounds.rs:2:15
   |
LL |     type P<T: Copy, U: Copy>;
   |               ^^^^ required by this bound in `Trait::P`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0277`.