1 #![warn(clippy::manual_non_exhaustive)]
11 // user forgot to remove the marker
20 // marker variant does not have doc hidden attribute, should be ignored
27 // name of variant with doc hidden does not start with underscore, should be ignored
35 // variant with doc hidden is not unit, should be ignored
43 // variant with doc hidden is the only one, should be ignored
49 // variant with multiple markers, should be ignored
50 enum MultipleMarkers {
58 // already non_exhaustive and no markers, should be ignored
65 // marked is used, don't lint
72 fn foo(x: &mut UsedHidden) {
73 if matches!(*x, UsedHidden::B) {