summaryrefslogtreecommitdiffstats
path: root/tests/ui/seq-args.rs
blob: 627dfcc31986a3ca1620f3a56f1d950e5b62f404 (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 trait takes 0 generic arguments but 1 generic argument
        /* ... */
    }

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