Sign in
rust
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
suggestions
/
shadowed-lplace-method.fixed
blob: 87db01a3b230bf4985ac63fd5941f3b167c08020 [
file
] [
log
] [
blame
]
//@ 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
));
*
std
::
cell
::
RefCell
::<
_
>::
borrow_mut
(&
rc
)
=
false
;
//~ ERROR E0308
}