Sign in
rust
/
rust-clippy
/
62a82b361c02838afdf607d461726e0407f1a5ec
/
.
/
tests
/
ui
/
string_to_string.rs
blob: 007685b601797d80e020e6d78494402ceb801a57 [
file
] [
log
] [
blame
]
#![
warn
(
clippy
::
string_to_string
)]
#![
allow
(
clippy
::
redundant_clone
)]
fn
main
()
{
let
mut
message
=
String
::
from
(
"Hello"
);
let
mut
v
=
message
.
to_string
();
//~^ ERROR: `to_string()` called on a `String`
}