blob: a5ebeecd3116c1fe390450e5745d1b531d83ca9b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
fn main() {
trait Seq { }
impl<T> Seq<T> for Vec<T> {
//~^ ERROR this trait takes 0 generic arguments but 1 generic argument
/* ... */
}
impl Seq<bool> for u32 {
//~^ ERROR this trait takes 0 generic arguments but 1 generic argument
/* Treat the integer as a sequence of bits */
}
}
|