]> git.lizzy.rs Git - rust.git/blob - tests/ui/string_from_utf8_as_bytes.rs
Don't lint `if_same_then_else` with `if let` conditions
[rust.git] / 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 }