diff options
Diffstat (limited to '')
-rw-r--r-- | src/tools/clippy/tests/ui/auxiliary/non-exhaustive-enum.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/auxiliary/non-exhaustive-enum.rs b/src/tools/clippy/tests/ui/auxiliary/non-exhaustive-enum.rs new file mode 100644 index 000000000..420232f9f --- /dev/null +++ b/src/tools/clippy/tests/ui/auxiliary/non-exhaustive-enum.rs @@ -0,0 +1,8 @@ +// Stripped down version of the ErrorKind enum of std +#[non_exhaustive] +pub enum ErrorKind { + NotFound, + PermissionDenied, + #[doc(hidden)] + Uncategorized, +} |