I'm working on #63438, and currently my problem is that I get errors that say "the trait
std::marker::Structural is not implemented for
when what I would want to say is "to use a constant of type
std::cell::Cell in a pattern,
std::cell::Cell must be annotated with `#[derive(PartialEq, Eq)]"
is there a standard way to achieve this sort of mis-direction in the compiler, in terms of saying "when this trait is not implemented, use this message instead" ?
hmm, actually ... maybe I could just do the check in question without signalling an error ...
yeah never mind me, I'm the one who put in a call to
infcx.report_fulfillment_error; I can just not do that, I think
which I think is exactly for this case
oh yeah, true