Sign in
rust
/
rust-lang
/
rust
/
refs/heads/lcnr/rustc-dev-guide
/
.
/
tests
/
ui
/
pattern
/
patkind-ref-binding-issue-114896.fixed
blob: 2eeca4bdb7a50fe9d7dcc83cd781ac1c47c75652 [
file
] [
log
] [
blame
]
//@ run-rustfix
#![allow(dead_code)]
fn main
()
{
fn x
(
a
:
&
char
)
{
let
&(
mut b
)
=
a
;
b
.
make_ascii_uppercase
();
//~^ ERROR cannot borrow `b` as mutable, as it is not declared as mutable
}
}