diff options
Diffstat (limited to 'tests/ui/seq-args.rs')
-rw-r--r-- | tests/ui/seq-args.rs | 13 |
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 000000000..a5ebeecd3 --- /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 */ + } +} |