10 lines
221 B
Rust
10 lines
221 B
Rust
//@ 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
|
|
}
|
|
}
|