Sign in
fuchsia
/
third_party
/
rust
/
2fcea9fb68c8e04f10e5cb15bbfb486de9800afa
/
.
/
src
/
tools
/
clippy
/
tests
/
ui
/
str_to_string.rs
blob: 4c4d2bb18062502040ec947c95f0169af2c4642d [
file
] [
log
] [
blame
]
#![
warn
(
clippy
::
str_to_string
)]
fn
main
()
{
let
hello
=
"hello world"
.
to_string
();
//~^ str_to_string
let
msg
=
&
hello
[..];
msg
.
to_string
();
//~^ str_to_string
}