1 error[E0308]: mismatched types
2 --> $DIR/shadowed-lplace-method.rs:9:24
4 LL | *rc.borrow_mut() = false;
5 | ---------------- ^^^^^ expected struct `Rc`, found `bool`
7 | expected due to the type of this binding
9 = note: expected struct `Rc<RefCell<bool>>`
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 --> $DIR/shadowed-lplace-method.rs:9:9
14 LL | use std::borrow::BorrowMut;
15 | ---------------------- `std::borrow::BorrowMut` imported here
17 LL | *rc.borrow_mut() = false;
18 | ^^^^^^^^^^ refers to `std::borrow::BorrowMut::borrow_mut`
19 help: you might have meant to call the other method; you can use the fully-qualified path to call it explicitly
21 LL | *std::cell::RefCell::<_>::borrow_mut(&rc) = false;
22 | +++++++++++++++++++++++++++++++++++++ ~
24 error: aborting due to previous error
26 For more information about this error, try `rustc --explain E0308`.