diff options
Diffstat (limited to 'tests/ui/str_to_string.rs')
| -rw-r--r-- | tests/ui/str_to_string.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/str_to_string.rs b/tests/ui/str_to_string.rs index 08f73402518..f93b289c29a 100644 --- a/tests/ui/str_to_string.rs +++ b/tests/ui/str_to_string.rs @@ -2,6 +2,8 @@ fn main() { let hello = "hello world".to_string(); + //~^ ERROR: `to_string()` called on a `&str` let msg = &hello[..]; msg.to_string(); + //~^ ERROR: `to_string()` called on a `&str` } |
