Sign in
android
/
toolchain
/
rustc
/
59fbe18bc79ed87d0c5f02705e7cf19e402e1f2b
/
.
/
src
/
test
/
ui
/
consts
/
partial_qualif.rs
blob: 7c28b8b8a628edb8bfcf39f66cd66b89275f8c18 [
file
]
use
std
::
cell
::
Cell
;
const
FOO
:
&(
Cell
<
usize
>,
bool
)
=
{
let
mut
a
=
(
Cell
::
new
(
0
),
false
);
a
.
1
=
true
;
// sets `qualif(a)` to `qualif(a) | qualif(true)`
&{
a
}
//~ ERROR cannot refer to interior mutable
};
fn
main
()
{}