blob: b4d6b72c01f2a06e6065e2ff21c8c1626d49e851 (
plain)
1
2
3
4
5
6
7
8
9
10
|
//@ 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
}
}
|