Sign in
◑
Theme
rust
/
rust
/
2a61ba8577ed3c3e1cfeb433d06cf5464ff2fdf3
/
.
/
tests
/
ui
/
suggestions
/
shadowed-lplace-method.fixed
blob: e7f6df9fff8fb2df5adc67fb54ad330749c93ab0 [
file
]
//@ 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
));
*
RefCell
::
borrow_mut
(&
rc
)
=
false
;
//~ ERROR E0308
}