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