summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/shadowed-lplace-method.rs
blob: 6bf12879e6f28dcc5c5c354b7917b78f9a083854 (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));
    *rc.borrow_mut() = false; //~ ERROR E0308
}