]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/str_to_string.rs
Merge commit '6ed6f1e6a1a8f414ba7e6d9b8222e7e5a1686e42' into clippyup
[rust.git] / src / tools / clippy / 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 }