about summary refs log tree commit diff
path: root/tests/ui/seq-args.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/seq-args.rs')
-rw-r--r--tests/ui/seq-args.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/seq-args.rs b/tests/ui/seq-args.rs
new file mode 100644
index 00000000000..a5ebeecd311
--- /dev/null
+++ b/tests/ui/seq-args.rs
@@ -0,0 +1,13 @@
+fn main() {
+    trait Seq { }
+
+    impl<T> Seq<T> for Vec<T> {
+        //~^ ERROR this trait takes 0 generic arguments but 1 generic argument
+        /* ... */
+    }
+
+    impl Seq<bool> for u32 {
+        //~^ ERROR this trait takes 0 generic arguments but 1 generic argument
+        /* Treat the integer as a sequence of bits */
+    }
+}