]> git.lizzy.rs Git - rust.git/blob - tests/ui/str_to_string.rs
Auto merge of #85538 - r00ster91:iterrepeat, r=Mark-Simulacrum
[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 }