]> git.proxmox.com Git - rustc.git/blob - tests/ui/suggestions/shadowed-lplace-method.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / suggestions / shadowed-lplace-method.rs
1 // run-rustfix
2 #![allow(unused_imports)]
3 use std::borrow::BorrowMut;
4 use std::cell::RefCell;
5 use std::rc::Rc;
6
7 fn main() {
8 let rc = Rc::new(RefCell::new(true));
9 *rc.borrow_mut() = false; //~ ERROR E0308
10 }