diff options
Diffstat (limited to 'src/tools/clippy/tests/ui/string_from_utf8_as_bytes.fixed')
-rw-r--r-- | src/tools/clippy/tests/ui/string_from_utf8_as_bytes.fixed | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/string_from_utf8_as_bytes.fixed b/src/tools/clippy/tests/ui/string_from_utf8_as_bytes.fixed new file mode 100644 index 000000000..6e665cdd5 --- /dev/null +++ b/src/tools/clippy/tests/ui/string_from_utf8_as_bytes.fixed @@ -0,0 +1,6 @@ +// run-rustfix +#![warn(clippy::string_from_utf8_as_bytes)] + +fn main() { + let _ = Some(&"Hello World!"[6..11]); +} |