Sign in
rust
/
rust-lang
/
rust
/
refs/heads/beta
/
.
/
tests
/
ui
/
borrowck
/
refcell-borrow-comparison-12033.rs
blob: de22cedd5b94a846259b6b588b165c44afbe9828 [
file
] [
log
] [
blame
]
//! Regression test for https://github.com/rust-lang/rust/issues/12033
//@ run-pass
use
std
::
cell
::
RefCell
;
fn
main
()
{
let
x
=
RefCell
::
new
(
0
);
if
*
x
.
borrow
()
==
0
{}
else
{}
}