]> git.lizzy.rs Git - rust.git/blob - tests/ui/str_to_string.rs
Auto merge of #8359 - flip1995:rustup, r=flip1995
[rust.git] / tests / ui / str_to_string.rs
1 #![warn(clippy::str_to_string)]
2
3 fn main() {
4     let hello = "hello world".to_string();
5     let msg = &hello[..];
6     msg.to_string();
7 }