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