Is it possible to make this work? I originally wanted to see if true
could be redefined, then I saw true
is actually a keyword.
Is it possible to "fix" the patterns error and get the "you-can't-assign-to-a-keyword-error"?
fn main() {
let true = false;
}
I get:
error[E0005]: refutable pattern in local binding: `false` not covered
--> src/main.rs:2:9
|
2 | let true = false;
| ^^^^ pattern `false` not covered