about summary refs log tree commit diff
path: root/tests/ui/pattern/patkind-ref-binding-issue-114896.fixed
blob: 2eeca4bdb7a50fe9d7dcc83cd781ac1c47c75652 (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();
        //~^ ERROR cannot borrow `b` as mutable, as it is not declared as mutable
    }
}