rust/src/test/compile-fail/seq-args.rs

13 lines
199 B
Rust
Raw Normal View History

extern mod std;
fn main() {
trait seq { }
2012-08-07 20:10:06 -05:00
impl<T> ~[T]: seq<T> { //~ ERROR wrong number of type arguments
/* ... */
}
2012-08-07 20:10:06 -05:00
impl u32: seq<bool> {
/* Treat the integer as a sequence of bits */
}
}