1 #![feature(lint_reasons)]
2 #![warn(clippy::manual_non_exhaustive)]
12 // user forgot to remove the marker
21 // marker variant does not have doc hidden attribute, should be ignored
28 // name of variant with doc hidden does not start with underscore, should be ignored
36 // variant with doc hidden is not unit, should be ignored
44 // variant with doc hidden is the only one, should be ignored
50 // variant with multiple markers, should be ignored
51 enum MultipleMarkers {
59 // already non_exhaustive and no markers, should be ignored
66 // marked is used, don't lint
73 fn foo(x: &mut UsedHidden) {
74 if matches!(*x, UsedHidden::B) {
79 #[expect(clippy::manual_non_exhaustive)]