summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generic-associated-types/parameter_number_and_kind_impl.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/generic-associated-types/parameter_number_and_kind_impl.stderr')
-rw-r--r--src/test/ui/generic-associated-types/parameter_number_and_kind_impl.stderr62
1 files changed, 62 insertions, 0 deletions
diff --git a/src/test/ui/generic-associated-types/parameter_number_and_kind_impl.stderr b/src/test/ui/generic-associated-types/parameter_number_and_kind_impl.stderr
new file mode 100644
index 000000000..1458bf0c4
--- /dev/null
+++ b/src/test/ui/generic-associated-types/parameter_number_and_kind_impl.stderr
@@ -0,0 +1,62 @@
+error[E0195]: lifetime parameters or bounds on type `A` do not match the trait declaration
+ --> $DIR/parameter_number_and_kind_impl.rs:15:11
+ |
+LL | type A<'a>;
+ | ---- lifetimes in impl do not match this type in trait
+...
+LL | type A = u32;
+ | ^ lifetimes do not match type in trait
+
+error[E0049]: type `B` has 1 type parameter but its trait declaration has 0 type parameters
+ --> $DIR/parameter_number_and_kind_impl.rs:17:12
+ |
+LL | type B<'a, 'b>;
+ | -- --
+ | |
+ | expected 0 type parameters
+...
+LL | type B<'a, T> = Vec<T>;
+ | ^^ ^
+ | |
+ | found 1 type parameter
+
+error[E0195]: lifetime parameters or bounds on type `C` do not match the trait declaration
+ --> $DIR/parameter_number_and_kind_impl.rs:19:11
+ |
+LL | type C;
+ | - lifetimes in impl do not match this type in trait
+...
+LL | type C<'a> = u32;
+ | ^^^^ lifetimes do not match type in trait
+
+error[E0049]: type `A` has 1 type parameter but its trait declaration has 0 type parameters
+ --> $DIR/parameter_number_and_kind_impl.rs:26:12
+ |
+LL | type A<'a>;
+ | -- expected 0 type parameters
+...
+LL | type A<T> = u32;
+ | ^ found 1 type parameter
+
+error[E0195]: lifetime parameters or bounds on type `B` do not match the trait declaration
+ --> $DIR/parameter_number_and_kind_impl.rs:28:11
+ |
+LL | type B<'a, 'b>;
+ | -------- lifetimes in impl do not match this type in trait
+...
+LL | type B<'a> = u32;
+ | ^^^^ lifetimes do not match type in trait
+
+error[E0049]: type `C` has 1 type parameter but its trait declaration has 0 type parameters
+ --> $DIR/parameter_number_and_kind_impl.rs:30:12
+ |
+LL | type C;
+ | - expected 0 type parameters
+...
+LL | type C<T> = T;
+ | ^ found 1 type parameter
+
+error: aborting due to 6 previous errors
+
+Some errors have detailed explanations: E0049, E0195.
+For more information about an error, try `rustc --explain E0049`.