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