rust/tests/ui/seq-args.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
337 B
Rust
Raw Normal View History

fn main() {
trait Seq { }
impl<T> Seq<T> for Vec<T> {
2021-02-18 20:01:44 +00:00
//~^ ERROR this trait takes 0 generic arguments but 1 generic argument
/* ... */
}
impl Seq<bool> for u32 {
2021-02-18 20:01:44 +00:00
//~^ ERROR this trait takes 0 generic arguments but 1 generic argument
/* Treat the integer as a sequence of bits */
}
}