]> git.lizzy.rs Git - rust.git/blob - tests/ui/exhaustive_enums.stderr
ee5a1836267eb4360642ddcde1855c3756c5e2d5
[rust.git] / tests / ui / exhaustive_enums.stderr
1 error: enums should not be exhaustive
2   --> $DIR/exhaustive_enums.rs:10:1
3    |
4 LL | / enum Exhaustive {
5 LL | |     Foo,
6 LL | |     Bar,
7 LL | |     Baz,
8 LL | |     Quux(String),
9 LL | | }
10    | |_^
11    |
12 note: the lint level is defined here
13   --> $DIR/exhaustive_enums.rs:3:9
14    |
15 LL | #![deny(clippy::exhaustive_enums)]
16    |         ^^^^^^^^^^^^^^^^^^^^^^^^
17 help: try adding #[non_exhaustive]
18    |
19 LL | #[non_exhaustive]
20 LL | enum Exhaustive {
21 LL |     Foo,
22 LL |     Bar,
23 LL |     Baz,
24 LL |     Quux(String),
25  ...
26
27 error: aborting due to previous error
28