2012-04-15 22:06:19 -07:00
|
|
|
fn main() {
|
2021-01-02 19:45:11 +01:00
|
|
|
trait Seq { }
|
2012-04-15 22:06:19 -07:00
|
|
|
|
2021-01-02 19:45:11 +01:00
|
|
|
impl<T> Seq<T> for Vec<T> {
|
2021-02-18 21:01:44 +01:00
|
|
|
//~^ ERROR this trait takes 0 generic arguments but 1 generic argument
|
2021-01-02 19:45:11 +01:00
|
|
|
/* ... */
|
|
|
|
}
|
2012-04-15 22:06:19 -07:00
|
|
|
|
2021-01-02 19:45:11 +01:00
|
|
|
impl Seq<bool> for u32 {
|
2021-02-18 21:01:44 +01:00
|
|
|
//~^ ERROR this trait takes 0 generic arguments but 1 generic argument
|
2021-01-02 19:45:11 +01:00
|
|
|
/* Treat the integer as a sequence of bits */
|
|
|
|
}
|
2012-04-15 22:06:19 -07:00
|
|
|
}
|