summaryrefslogtreecommitdiffstats
path: root/tests/ui/generic-associated-types/multiple-type-params-with-unmet-bounds.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/generic-associated-types/multiple-type-params-with-unmet-bounds.stderr')
-rw-r--r--tests/ui/generic-associated-types/multiple-type-params-with-unmet-bounds.stderr15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/generic-associated-types/multiple-type-params-with-unmet-bounds.stderr b/tests/ui/generic-associated-types/multiple-type-params-with-unmet-bounds.stderr
new file mode 100644
index 000000000..72a987b4a
--- /dev/null
+++ b/tests/ui/generic-associated-types/multiple-type-params-with-unmet-bounds.stderr
@@ -0,0 +1,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 previous error
+
+For more information about this error, try `rustc --explain E0277`.