mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
14 lines
339 B
Rust
14 lines
339 B
Rust
fn main() {
|
|
#[derive(Debug)]
|
|
enum Foo {
|
|
//~^ HELP consider annotating `Foo` with `#[derive(PartialEq)]`
|
|
Bar,
|
|
Qux,
|
|
}
|
|
|
|
let vec1 = vec![Foo::Bar, Foo::Qux];
|
|
let vec2 = vec![Foo::Bar, Foo::Qux];
|
|
assert_eq!(vec1, vec2);
|
|
//~^ ERROR binary operation `==` cannot be applied to type `Vec<Foo>`
|
|
}
|