blob: 675c03a42bc23679e2132be6d00b43a1735c188a (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
### What it does
Checks for casts from an enum tuple constructor to an integer.
### Why is this bad?
The cast is easily confused with casting a c-like enum value to an integer.
### Example
```
enum E { X(i32) };
let _ = E::X as usize;
```
|