6 use enums::FieldLessWithNonExhaustiveVariant;
9 let e = FieldLessWithNonExhaustiveVariant::default();
10 // FIXME: https://github.com/rust-lang/rust/issues/91161
11 // This `as` cast *should* be an error, since it would fail
12 // if the non-exhaustive variant got fields. But today it
13 // doesn't. The fix for that will update this test to
14 // show an error (and not be run-pass any more).