summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/chain-method-call-mutation-in-place.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/suggestions/chain-method-call-mutation-in-place.stderr')
-rw-r--r--tests/ui/suggestions/chain-method-call-mutation-in-place.stderr5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/ui/suggestions/chain-method-call-mutation-in-place.stderr b/tests/ui/suggestions/chain-method-call-mutation-in-place.stderr
index 128160f10..2dd6fb6a3 100644
--- a/tests/ui/suggestions/chain-method-call-mutation-in-place.stderr
+++ b/tests/ui/suggestions/chain-method-call-mutation-in-place.stderr
@@ -18,7 +18,10 @@ error[E0599]: no method named `sort` found for unit type `()` in the current sco
--> $DIR/chain-method-call-mutation-in-place.rs:3:72
|
LL | vec![1, 2, 3].into_iter().collect::<Vec<i32>>().sort_by_key(|i| i).sort();
- | ^^^^ method not found in `()`
+ | ------------- --------------------- ^^^^ method not found in `()`
+ | | |
+ | | method `sort` is available on `&mut [i32]`
+ | method `sort` is available on `Vec<i32>`
|
note: method `sort_by_key` modifies its receiver in-place, it is not meant to be used in method chains.
--> $DIR/chain-method-call-mutation-in-place.rs:3:53