Files
rust/tests/ui/string_from_utf8_as_bytes.rs
Guillaume Gomez f666fd6417 Update UI tests
2025-02-15 13:38:16 +01:00

7 lines
162 B
Rust

#![warn(clippy::string_from_utf8_as_bytes)]
fn main() {
let _ = std::str::from_utf8(&"Hello World!".as_bytes()[6..11]);
//~^ string_from_utf8_as_bytes
}