--- /dev/null
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 4
+
+[[package]]
+name = "test-operator-impl"
+version = "0.1.0"
--- /dev/null
+fn main() {
+ let m1 = MyType(3);
+ let m2 = MyType(5);
+
+ assert_eq!(m1 & m2, MyType(1));
+}
+
+#[derive(Debug, PartialEq)]
+struct MyType(u32);
+impl std::ops::BitAnd for MyType {
+ type Output = MyType;
+
+ fn bitand(self, rhs: Self) -> Self::Output {
+ Self(self.0 & rhs.0)
+ }
+}
\ No newline at end of file