1
Fork 0
rust/tests/ui/pattern/patkind-ref-binding-issue-114896.rs
2025-04-08 23:06:31 +03:00

10 lines
215 B
Rust

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