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