summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/mismatched_arg_count.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc-ui/mismatched_arg_count.rs')
-rw-r--r--tests/rustdoc-ui/mismatched_arg_count.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/mismatched_arg_count.rs b/tests/rustdoc-ui/mismatched_arg_count.rs
new file mode 100644
index 000000000..784144298
--- /dev/null
+++ b/tests/rustdoc-ui/mismatched_arg_count.rs
@@ -0,0 +1,8 @@
+trait Trait<'a> {
+ type Assoc;
+}
+
+type Alias<'a, T> = <T as Trait<'a>>::Assoc;
+
+fn bar<'a, T: Trait<'a>>(_: Alias<'a, 'a, T>) {}
+//~^ error: type alias takes 1 lifetime argument but 2 lifetime arguments were supplied