Closed
Description
In stable and beta, you can write ErrorKind::Other {}
, but in nightly this triggers E0639: cannot create non-exhaustive variant using struct expression. (As an aside, that error message should be rephrased and examples added to --explain
.)
This is either a bug with #[non_exhaustive]
, or it means that the attribute can't be applied to public enums without creating a breaking change.