// option. This file may not be copied, modified, or distributed
// except according to those terms.
+// compile-flags: -g
+#[derive(PartialEq, Eq)]
struct NewBool(bool);
+#[derive(PartialEq, Eq)]
enum Direction {
North,
East,
South,
West
}
+
+#[derive(PartialEq, Eq)]
struct Foo {
bar: Option<Direction>,
baz: NewBool
}
+
+#[derive(PartialEq, Eq)]
enum EnumWithStructVariants {
Variant1(bool),
Variant2 {
dir: Direction::North };
pub mod glfw {
- #[derive(Copy, Clone)]
+ #[derive(Copy, Clone, PartialEq, Eq)]
pub struct InputState(usize);
pub const RELEASE : InputState = InputState(0);
_ => unreachable!()
}
+ #[derive(PartialEq, Eq)]
enum C { D = 3, E = 4 }
const F : C = C::D;
}
fn issue_13731() {
+ #[derive(PartialEq, Eq)]
enum A { AA(()) }
const B: A = A::AA(());
fn issue_15393() {
#![allow(dead_code)]
+ #[derive(PartialEq, Eq)]
struct Flags {
bits: usize
}