diff options
Diffstat (limited to 'src/docs/cast_enum_truncation.txt')
| -rw-r--r-- | src/docs/cast_enum_truncation.txt | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/docs/cast_enum_truncation.txt b/src/docs/cast_enum_truncation.txt deleted file mode 100644 index abe32a8296d..00000000000 --- a/src/docs/cast_enum_truncation.txt +++ /dev/null @@ -1,12 +0,0 @@ -### What it does -Checks for casts from an enum type to an integral type which will definitely truncate the -value. - -### Why is this bad? -The resulting integral value will not match the value of the variant it came from. - -### Example -``` -enum E { X = 256 }; -let _ = E::X as u8; -``` \ No newline at end of file |
