]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/manual_strip.stderr
Auto merge of #7847 - mikerite:fix-7829, r=flip1995
[rust.git] / tests / ui / manual_strip.stderr
index 1352a8713d4f8d31ef98b3ec74b9b8ebbf88667b..896edf2ae516df33cd1713f4e8197ef9010f8201 100644 (file)
@@ -12,12 +12,12 @@ LL |     if s.starts_with("ab") {
    |     ^^^^^^^^^^^^^^^^^^^^^^^
 help: try using the `strip_prefix` method
    |
-LL |     if let Some(<stripped>) = s.strip_prefix("ab") {
-LL |         str::to_string(<stripped>);
-LL |         <stripped>.to_string();
+LL ~     if let Some(<stripped>) = s.strip_prefix("ab") {
+LL ~         str::to_string(<stripped>);
+LL ~         <stripped>.to_string();
 LL | 
-LL |         str::to_string(<stripped>);
-LL |         <stripped>.to_string();
+LL ~         str::to_string(<stripped>);
+LL ~         <stripped>.to_string();
    |
 
 error: stripping a suffix manually
@@ -33,12 +33,12 @@ LL |     if s.ends_with("bc") {
    |     ^^^^^^^^^^^^^^^^^^^^^
 help: try using the `strip_suffix` method
    |
-LL |     if let Some(<stripped>) = s.strip_suffix("bc") {
-LL |         str::to_string(<stripped>);
-LL |         <stripped>.to_string();
+LL ~     if let Some(<stripped>) = s.strip_suffix("bc") {
+LL ~         str::to_string(<stripped>);
+LL ~         <stripped>.to_string();
 LL | 
-LL |         str::to_string(<stripped>);
-LL |         <stripped>.to_string();
+LL ~         str::to_string(<stripped>);
+LL ~         <stripped>.to_string();
    |
 
 error: stripping a prefix manually
@@ -54,9 +54,9 @@ LL |     if s.starts_with('a') {
    |     ^^^^^^^^^^^^^^^^^^^^^^
 help: try using the `strip_prefix` method
    |
-LL |     if let Some(<stripped>) = s.strip_prefix('a') {
-LL |         str::to_string(<stripped>);
-LL |         <stripped>.to_string();
+LL ~     if let Some(<stripped>) = s.strip_prefix('a') {
+LL ~         str::to_string(<stripped>);
+LL ~         <stripped>.to_string();
    |
 
 error: stripping a prefix manually
@@ -72,8 +72,8 @@ LL |     if s.starts_with(prefix) {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
 help: try using the `strip_prefix` method
    |
-LL |     if let Some(<stripped>) = s.strip_prefix(prefix) {
-LL |         str::to_string(<stripped>);
+LL ~     if let Some(<stripped>) = s.strip_prefix(prefix) {
+LL ~         str::to_string(<stripped>);
    |
 
 error: stripping a prefix manually
@@ -89,9 +89,9 @@ LL |     if s.starts_with(PREFIX) {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
 help: try using the `strip_prefix` method
    |
-LL |     if let Some(<stripped>) = s.strip_prefix(PREFIX) {
-LL |         str::to_string(<stripped>);
-LL |         str::to_string(<stripped>);
+LL ~     if let Some(<stripped>) = s.strip_prefix(PREFIX) {
+LL ~         str::to_string(<stripped>);
+LL ~         str::to_string(<stripped>);
    |
 
 error: stripping a prefix manually
@@ -107,8 +107,8 @@ LL |     if TARGET.starts_with(prefix) {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 help: try using the `strip_prefix` method
    |
-LL |     if let Some(<stripped>) = TARGET.strip_prefix(prefix) {
-LL |         str::to_string(<stripped>);
+LL ~     if let Some(<stripped>) = TARGET.strip_prefix(prefix) {
+LL ~         str::to_string(<stripped>);
    |
 
 error: stripping a prefix manually
@@ -124,8 +124,8 @@ LL |     if s1.starts_with("ab") {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^
 help: try using the `strip_prefix` method
    |
-LL |     if let Some(<stripped>) = s1.strip_prefix("ab") {
-LL |         <stripped>.to_uppercase();
+LL ~     if let Some(<stripped>) = s1.strip_prefix("ab") {
+LL ~         <stripped>.to_uppercase();
    |
 
 error: aborting due to 7 previous errors