summary refs log tree commit diff
path: root/src/test/compile-fail/seq-args.rs
blob: 645cbad7f0bdc87bd0b8769a760357ada647ad87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
extern mod std;
fn main() {
trait seq { }

impl<T> ~[T]: seq<T> { //~ ERROR wrong number of type arguments
    /* ... */
}
impl u32: seq<bool> {
   /* Treat the integer as a sequence of bits */
}

}