]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/string_from_utf8_as_bytes.fixed
Merge commit 'c1664c50b27a51f7a78c93ba65558e7c33eabee6' into clippyup
[rust.git] / src / tools / clippy / tests / ui / string_from_utf8_as_bytes.fixed
1 // run-rustfix
2 #![warn(clippy::string_from_utf8_as_bytes)]
3
4 fn main() {
5     let _ = Some(&"Hello World!"[6..11]);
6 }