diff --git a/README.md b/README.md new file mode 100644 index 0000000..d52486a --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +# Problem + +Why does the doc test for `sub` under `impl Sub for Point2` work, but my +attempt to implement `area` under `impl Bounds2` fails to compile with: + +``` +error[E0369]: binary operation `-` cannot be applied to type `Point2` + --> src/lib.rs:87:28 + | +87 | let d = self.p_max - self.p_min; + | ---------- ^ ---------- Point2 + | | + | Point2 + | + = note: an implementation of `std::ops::Sub` might be missing for `Point2` +```