Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
suggestions
/
shadowed-lplace-method.rs
blob: 01cc58bf784c0103de5f63373ca8a55cdbbff70c [
file
] [
log
] [
blame
] [
edit
]
//@ 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
}