mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 00:03:43 +00:00
8 lines
163 B
Rust
8 lines
163 B
Rust
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
|
|
}
|
|
}
|