about summary refs log tree commit diff
path: root/src/test/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui')
-rw-r--r--src/test/ui/suggestions/shadowed-lplace-method.stderr7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/test/ui/suggestions/shadowed-lplace-method.stderr b/src/test/ui/suggestions/shadowed-lplace-method.stderr
index 080600128a3..91d0d1200d4 100644
--- a/src/test/ui/suggestions/shadowed-lplace-method.stderr
+++ b/src/test/ui/suggestions/shadowed-lplace-method.stderr
@@ -8,12 +8,15 @@ LL |     *rc.borrow_mut() = false;
    |
    = note: expected struct `Rc<RefCell<bool>>`
                 found type `bool`
-note: there are multiple methods with the same name, `borrow_mut` refers to `std::borrow::BorrowMut::borrow_mut` in the method call
+note: the `borrow_mut` call is resolved to the method in `std::borrow::BorrowMut`, shadowing the method of the same name on the inherent impl for `std::cell::RefCell<T>`
   --> $DIR/shadowed-lplace-method.rs:9:9
    |
+LL | use std::borrow::BorrowMut;
+   |     ---------------------- `std::borrow::BorrowMut` imported here
+...
 LL |     *rc.borrow_mut() = false;
    |         ^^^^^^^^^^ refers to `std::borrow::BorrowMut::borrow_mut`
-help: you might have meant to invoke a different method, you can use the fully-qualified path
+help: you might have meant to call the other method; you can use the fully-qualified path to call it explicitly
    |
 LL |     *std::cell::RefCell::<_>::borrow_mut(&rc) = false;
    |      +++++++++++++++++++++++++++++++++++++  ~