summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/as-ref-2.stderr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/suggestions/as-ref-2.stderr (renamed from src/test/ui/suggestions/as-ref-2.stderr)5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/test/ui/suggestions/as-ref-2.stderr b/tests/ui/suggestions/as-ref-2.stderr
index e15e45d86..e2129b450 100644
--- a/src/test/ui/suggestions/as-ref-2.stderr
+++ b/tests/ui/suggestions/as-ref-2.stderr
@@ -10,11 +10,8 @@ LL | let _x: Option<Struct> = foo.map(|s| bar(&s));
LL | let _y = foo;
| ^^^ value used here after move
|
-note: this function takes ownership of the receiver `self`, which moves `foo`
+note: `Option::<T>::map` takes ownership of the receiver `self`, which moves `foo`
--> $SRC_DIR/core/src/option.rs:LL:COL
- |
-LL | pub const fn map<U, F>(self, f: F) -> Option<U>
- | ^^^^
error: aborting due to previous error