13 lines
192 B
Rust
13 lines
192 B
Rust
use 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 */
|
|
}
|
|
|
|
}
|