Sign in
rust
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
pattern
/
bindings-after-at
/
nested-binding-modes-mut.rs
blob: e7d99534d6ab05c129f36ddc4d44cbb17dd454fa [
file
] [
log
] [
blame
]
fn
main
()
{
let
mut
is_mut
@
not_mut
=
42
;
&
mut
is_mut
;
&
mut
not_mut
;
//~^ ERROR cannot borrow
let
not_mut
@
mut
is_mut
=
42
;
&
mut
is_mut
;
&
mut
not_mut
;
//~^ ERROR cannot borrow
}