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> {
|
2023-02-23 10:27:06 -07:00
|
|
|
//~^ ERROR 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 {
|
2023-02-23 10:27:06 -07:00
|
|
|
//~^ ERROR 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
|
|
|
}
|