Hey everyone,
I was wondering if it's possible to write a "compile-fail test", i.e. a small #[test]
that should fail to compile.
This is mostly because I'm implementing a container type that returns an iterator which shouldn't outlive its corresponding container and for that, I use PhantomData<&'a T>
but there was recently a PR that attempts to remove it which breaks that invariant.