mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
change constant patterns to have a warning cycle
This was the original intention :(
This commit is contained in:
parent
772c600d4d
commit
b27b3e1278
@ -144,7 +144,7 @@ declare_lint! {
|
||||
|
||||
declare_lint! {
|
||||
pub ILLEGAL_STRUCT_OR_ENUM_CONSTANT_PATTERN,
|
||||
Deny,
|
||||
Warn,
|
||||
"constants of struct or enum type can only be used in a pattern if \
|
||||
the struct or enum has `#[derive(PartialEq, Eq)]`"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user