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