rust/src/test/ui/seq-args.rs
2018-12-25 21:08:33 -07:00

12 lines
232 B
Rust

fn main() {
trait Seq { }
impl<T> Seq<T> for Vec<T> { //~ ERROR wrong number of type arguments
/* ... */
}
impl Seq<bool> for u32 { //~ ERROR wrong number of type arguments
/* Treat the integer as a sequence of bits */
}
}