summaryrefslogtreecommitdiffstats
path: root/tests/ui/pattern/issue-114896.rs
blob: cde37f658d6ae0f1bec107618eccf599c5bfb3d0 (plain)
1
2
3
4
5
6
7
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
    }
}