summary refs log tree commit diff
path: root/src/test/ui/seq-args.rs
blob: 9a3c495602a69b968345d56a157d079ae7e85e15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
fn main() {
    trait Seq { }

    impl<T> Seq<T> for Vec<T> {
        //~^ ERROR this trait takes 0 type arguments but 1 type argument was supplied
        /* ... */
    }

    impl Seq<bool> for u32 {
        //~^ ERROR this trait takes 0 type arguments but 1 type argument was supplied
        /* Treat the integer as a sequence of bits */
    }
}