diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2024-03-13 15:37:27 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2024-04-11 16:41:41 +0000 |
| commit | 5a7caa3174f8174db817228d8c2a02aa4913095c (patch) | |
| tree | e3307d262a0b7a79ca55ee414baf747ea3c18a78 /tests/ui/error-codes | |
| parent | 259348cf7e6078e5e955ad53e14aeb9cc24c48ca (diff) | |
| download | rust-5a7caa3174f8174db817228d8c2a02aa4913095c.tar.gz rust-5a7caa3174f8174db817228d8c2a02aa4913095c.zip | |
Fix accuracy of `T: Clone` check in suggestion
Diffstat (limited to 'tests/ui/error-codes')
| -rw-r--r-- | tests/ui/error-codes/E0504.stderr | 6 | ||||
| -rw-r--r-- | tests/ui/error-codes/E0505.stderr | 6 |
2 files changed, 0 insertions, 12 deletions
diff --git a/tests/ui/error-codes/E0504.stderr b/tests/ui/error-codes/E0504.stderr index 47f1218d2fa..c8a48961cb3 100644 --- a/tests/ui/error-codes/E0504.stderr +++ b/tests/ui/error-codes/E0504.stderr @@ -13,12 +13,6 @@ LL | println!("child function: {}", fancy_num.num); ... LL | println!("main function: {}", fancy_ref.num); | ------------- borrow later used here - | -help: consider cloning the value if the performance cost is acceptable - | -LL - let fancy_ref = &fancy_num; -LL + let fancy_ref = fancy_num.clone(); - | error: aborting due to 1 previous error diff --git a/tests/ui/error-codes/E0505.stderr b/tests/ui/error-codes/E0505.stderr index 7e99d5252bd..250680d2c1c 100644 --- a/tests/ui/error-codes/E0505.stderr +++ b/tests/ui/error-codes/E0505.stderr @@ -10,12 +10,6 @@ LL | eat(x); | ^ move out of `x` occurs here LL | _ref_to_val.use_ref(); | ----------- borrow later used here - | -help: consider cloning the value if the performance cost is acceptable - | -LL - let _ref_to_val: &Value = &x; -LL + let _ref_to_val: &Value = x.clone(); - | error: aborting due to 1 previous error |
