blob: b4d6b72c01f2a06e6065e2ff21c8c1626d49e851 [file] [log] [blame] [edit]
//@ run-rustfix
#![allow(dead_code)]
fn main() {
fn x(a: &char) {
let &b = a;
b.make_ascii_uppercase();
//~^ cannot borrow `b` as mutable, as it is not declared as mutable
}
}