You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/test/ui/suggestions/shadowed-lplace-method.stderr
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8,12 +8,15 @@ LL | *rc.borrow_mut() = false;
8
8
|
9
9
= note: expected struct `Rc<RefCell<bool>>`
10
10
found type `bool`
11
-
note: there are multiple methods with the same name, `borrow_mut` refers to `std::borrow::BorrowMut::borrow_mut` in the method call
11
+
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>`
12
12
--> $DIR/shadowed-lplace-method.rs:9:9
13
13
|
14
+
LL | use std::borrow::BorrowMut;
15
+
| ---------------------- `std::borrow::BorrowMut` imported here
16
+
...
14
17
LL | *rc.borrow_mut() = false;
15
18
| ^^^^^^^^^^ refers to `std::borrow::BorrowMut::borrow_mut`
16
-
help: you might have meant to invoke a different method, you can use the fully-qualified path
19
+
help: you might have meant to call the other method; you can use the fully-qualified path to call it explicitly
0 commit comments