summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/shadowed-lplace-method.fixed
blob: 740ac77ee0c675d7fc7257dce53f4932e5947986 (plain)
1
2
3
4
5
6
7
8
9
10
// run-rustfix
#![allow(unused_imports)]
use std::borrow::BorrowMut;
use std::cell::RefCell;
use std::rc::Rc;

fn main() {
    let rc = Rc::new(RefCell::new(true));
    *std::cell::RefCell::<_>::borrow_mut(&rc) = false; //~ ERROR E0308
}