14 lines
232 B
Rust
14 lines
232 B
Rust
|
use std;
|
||
|
fn main() {
|
||
|
iface seq { }
|
||
|
|
||
|
impl <T> of seq<T> for [T] {
|
||
|
//!^ ERROR wrong number of type arguments for a polymorphic type
|
||
|
/* ... */
|
||
|
}
|
||
|
impl of seq<bool> for u32 {
|
||
|
/* Treat the integer as a sequence of bits */
|
||
|
}
|
||
|
|
||
|
}
|