]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/string_from_utf8_as_bytes.rs
Merge commit '35d9c6bf256968e1b40e0d554607928bdf9cebea' into sync_cg_clif-2022-02-23
[rust.git] / src / tools / clippy / tests / ui / string_from_utf8_as_bytes.rs
1 // run-rustfix
2 #![warn(clippy::string_from_utf8_as_bytes)]
3
4 fn main() {
5     let _ = std::str::from_utf8(&"Hello World!".as_bytes()[6..11]);
6 }