]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/shadowed-lplace-method.fixed
Rollup merge of #106715 - BoxyUwU:new_solver_triagebot, r=lcnr
[rust.git] / tests / ui / suggestions / shadowed-lplace-method.fixed
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     *std::cell::RefCell::<_>::borrow_mut(&rc) = false; //~ ERROR E0308
10 }