Wow this is a super nice #Rust error. It's suggesting to wrap the value in a variant of an enum that can hold values of that type. (The suggestion is the correct too)
Reminds me a little of the proof repair stuff that Talia Ringer works on for dependently typed programming/theorem proving: https://dependenttyp.es/pdf/thesis.pdf
This has limitations, it's a heuristic. It only works when there's a variant with a single field of the type that was found, but in practice it works more often than you'd expect and when it does it's just magical 😍
And when it doesn't you don't know what you're missing 👀